怎么去掉单文档视图中的菜单?

来源:互联网 发布:淘宝网官方下载电脑版 编辑:程序博客网 时间:2024/04/30 14:56

CMainFrame类中找到:

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
//    the CREATESTRUCT cs
cs.hMenu     =   NULL; //去掉菜单
return TRUE;
}