Description: How to make one start on the main interface window of the dialog box can be hidden in the dialog box overloaded virtual function DefWindowProc []. 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_POPUO // enable the main interface is not visible cs.dwExStyle | = WS_EX_TOOLWINDOW // mission button is not displayed if [! CFrameWnd:: PreCreateWindow [cs]] return FALSE return TRUE ]
- [VCjiemian] - err
- [tuopan] - Procedures for sample tray, vc prepared,
- [aaa] - It is written in MFC to use openGL viewp
File list (Check if you may need any files):
主界面一启动就隐藏窗口
......................\Debug
......................\HideFace.aps
......................\HideFace.clw
......................\HideFace.cpp
......................\HideFace.dsp
......................\HideFace.dsw
......................\HideFace.h
......................\HideFace.ncb
......................\HideFace.opt
......................\HideFace.plg
......................\HideFace.rc
......................\HideFaceDoc.cpp
......................\HideFaceDoc.h
......................\HideFaceView.cpp
......................\HideFaceView.h
......................\MainFrm.cpp
......................\MainFrm.h
......................\ReadMe.txt
......................\res
......................\...\HideFace.rc2
......................\Resource.h
......................\StdAfx.cpp
......................\StdAfx.h
......................\说明文字.txt