/* * OnSysCommand() */ void rw_OnSysCommand(HWND remoteWnd, UINT cmdID, int x, int y) { if (cmdID == IDM_STAY_ON_TOP) { Prog_remoteStayOnTop ^= TRUE; rw_StayOnTop(remoteWnd); } else { FORWARD_WM_SYSCOMMAND(remoteWnd, cmdID, x, y, DefWindowProc); } }
/* * Function: Process WM_SYSCOMMAND messages by setting * the focus to the password or name on restore. */ static void kwin_syscommand(HWND hwnd, UINT cmd, int x, int y) { if (cmd == SC_RESTORE) kwin_set_default_focus(hwnd); if (cmd == SC_CLOSE) { SendMessage(hwnd, WM_COMMAND, GET_WM_COMMAND_MPS(IDM_EXIT, 0, 0)); return; } FORWARD_WM_SYSCOMMAND(hwnd, cmd, x, y, DefDlgProc); }