在CMainFrame的OnCreate()中添加如下代码:
//去掉标题栏及其他样式SetWindowLong(this->m_hWnd,GWL_STYLE,0);
//去掉边框及其他样式SetWindowLong(this->m_hWnd,GWL_EXSTYLE,0);
//取消菜单栏this->SetMenu(NULL);
在CView中的OnCreate()中也去掉边框
//去掉边框风格及其他样式long Style;SetWindowLong(this->m_hWnd,GWL_EXSTYLE,0);
方法二:使用CWnd成员函数ModifyStyle实现 // 隐藏TitleBar ModifyStyle(WS_CAPTION, 0, SWP_FRAMECHANGED); // 显示TitleBar ModifyStyle(0, WS_CAPTION, SWP_FRAM......
阅读全文