Error

C++博客 首页 新随笔 联系 聚合 管理
  217 Posts :: 61 Stories :: 32 Comments :: 0 Trackbacks

隐藏MFC对话框程序主窗口:
1.不在桌面任务栏显示
ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);
2.使用SetPos设置0
::SetWindowPos(m_hWnd, NULL, 0, 0, 0, 0, 0);

关闭主窗口对话框:
CDialog* pDlg =reinterpret_cast<CDialog*>(AfxGetApp()->GetMainWnd());
  pDlg->EndDialog(IDOK);

posted on 2015-01-19 19:34 Enic 阅读(452) 评论(0)  编辑 收藏 引用 所属分类: 从零开始写棋牌游戏平台

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理