private IntPtr WindowProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { var wmMessage = new WmMessage { Hwnd = hwnd, Message = msg, WParam = wParam, LParam = lParam }; if (_messageHendlers.TryGetValue(msg, out WmHandler wmHandler)) { wmHandler.Handler(ref wmMessage); } handled = wmMessage.Handled; return(wmHandler?.ReturnValue ?? IntPtr.Zero); }
public abstract void Handler(ref WmMessage wmMessage);