1、在资源编辑中设置对话框为不可见
2、在OnPaint中加入下面代码
void CMyDlg::OnPaint()
{
static b = false;
if(!b){ ShowWindow(SW_HIDE);
b = true;
return;
} // //其他代码
}
本文参考链接:https://www.cnblogs.com/xihong2014/p/11945775.html
1、在资源编辑中设置对话框为不可见
2、在OnPaint中加入下面代码
void CMyDlg::OnPaint()
{
static b = false;
if(!b){ ShowWindow(SW_HIDE);
b = true;
return;
} // //其他代码
}