如何让程序主界面不可用

有时候,我们希望有个紧急消息,可以在不停止程序运行的情况下,停止界面响应
                                CWnd *pWnd = GetParent();
				if (pWnd != NULL) {
					pWnd->EnableWindow(FALSE);
				}

恢复界面

                                CWnd *pWnd = GetParent();
				if (pWnd != NULL) {
					pWnd->EnableWindow(TRUE);
				}


猜你喜欢

转载自blog.csdn.net/qq_24127015/article/details/48001445