protected void SystemMenu_SystemEvent(object sender, WindowMenuEventArgs ev) { SendNCWinMessage(USER32.WM_SYSCOMMAND, (IntPtr)ev.SystemCommand, IntPtr.Zero); }
private void SendSysCommand(USER32.SysCommand command) { if (this.SystemEvent != null) { WindowMenuEventArgs ev = new WindowMenuEventArgs((int)command); this.SystemEvent(this, ev); } }