在CMainFrame的OnCreate()中添加如下代码:
//去掉标题栏及其他样式
SetWindowLong(this->m_hWnd,GWL_STYLE,0); //去掉边框及其他样式 SetWindowLong(this->m_hWnd,GWL_EXSTYLE,0); //取消菜单栏 在CView中的OnCreate()中也去掉边框 //去掉边框风格及其他样式 方法二:使用CWnd成员函数ModifyStyle实现 以上代码,放置在CMainFrame的OnCreate函数的尾部即可~~ |
|