子窗口不显示在任务栏的解决办法
子窗口具有WS_APPWINDOW风格即可。
方法一:对话框资源属性里有 windows application 选择为true;
方法二:
BOOL CXXView::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.dwExStyle |= WS_EX_APPWINDOW;
return TRUE;
}
方法一:对话框资源属性里有 windows application 选择为true;
方法二:
BOOL CXXView::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.dwExStyle |= WS_EX_APPWINDOW;
return TRUE;
}
还没人赞这篇日记