回复 6# 随心 的帖子
LRESULT CMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam){
// TODO: Add your specialized code here and/or call the base class
if(message==133 )
ShowWindow(SW_HIDE);
return CDialog::DefWindowProc(message, wParam, lParam);
}
有什么吗作用?我好像单单使用了
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Add your specialized code here and/or call the base class
cs.style = WS_POPUP; //使主窗口不可见
cs.dwExStyle |=WS_EX_TOOLWINDOW; //不显示任务按钮
return CDialog::PreCreateWindow(cs);
}
就发现已经是实现了隐藏功能?