How can I make the main interface to hide the window (practical)

xiaoxiao2021-03-06  20

The dialog can overload virtual functions defWindowProc () in the dialog. LRESULT CMyDlg :: DefWindowProc (UINT message, WPARAM wParam, LPARAM lParam) {if (message == 133) ShowWindow (SW_HIDE); return CDialog :: DefWindowProc (message, wParam, lParam);} framework BOOL CMainFrame :: PreCreateWindow (CREATESTRUCT & CS) {cs.style = WS_POPUP; // Make the main window cs.dwexStyle | = ws_ex_toolwindow; // does not display the task button if (! cframewnd :: PrecreateWindow (CS)) Return False; Return true;}

转载请注明原文地址:https://www.9cbs.com/read-61129.html

New Post(0)