1、在资源编辑中设置对话框为不可见
2、在OnPaint中加入下面代码
void CMyDlg::OnPaint()
{
static b = false;
if(!b){
ShowWindow(SW_HIDE);
b = true;
return;
}
//
//其他代码
}
2、在OnPaint中加入下面代码
void CMyDlg::OnPaint()
{
static b = false;
if(!b){
ShowWindow(SW_HIDE);
b = true;
return;
}
//
//其他代码
}