慢摇吧一般进去怎么玩:求教牛人:VC++中的窗口最前化按钮

来源:百度文库 编辑:高考问答 时间:2024/04/29 08:54:59
下面的代码该放哪儿啊????

置最前:

CWnd *pWnd=AfxGetMainWnd();
pWnd->SetWindowPos( &wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );

取消置最前:
CWnd *pWnd=AfxGetMainWnd();
pWnd->SetWindowPos( &wndNoTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );
还是不行,这次出现的是遇到问题需要关闭,实在是......

放在PreCreateWindow();