protected override void WndProc(ref Message m) { var msg = (WindowsMessages)m.Msg; var handled = OnWindowsMessage?.Invoke(ref m); switch (msg) { case WindowsMessages.WM_LBUTTONDOWN: handled = _formium?.OnBrowserWMLButtonDown(m); break; case WindowsMessages.WM_RBUTTONDOWN: handled = _formium?.OnBrowserWMRButtonDown(m); break; case WindowsMessages.WM_RBUTTONUP: handled = _formium?.OnBrowserWMRButtonUp(m); break; case WindowsMessages.WM_LBUTTONDBLCLK: handled = _formium?.OnBrowserWMLButtonDbClick(m); break; case WindowsMessages.WM_MOUSEMOVE: if (_formium != null && _formium.Resizable) { handled = _formium.OnBrowserWMMouseMove(m); } break; case WindowsMessages.WM_IME_STARTCOMPOSITION: { } break; case WindowsMessages.WM_IME_ENDCOMPOSITION: { } break; case WindowsMessages.WM_IME_COMPOSITION: { } break; case WindowsMessages.WM_IME_SETCONTEXT: { } break; } if (handled == null || handled == false) { base.WndProc(ref m); } }