用CSplitterWnd类切分视图

来源:互联网 发布:2016尚学堂云计算 编辑:程序博客网 时间:2024/05/10 04:22
  
  App类中的BOOL   CMyApp::InitInstance()函数中  
   
  CSingleDocTemplate*   pDocTemplate;  
  pDocTemplate   =   new   CSingleDocTemplate(  
  IDR_MAINFRAME,  
  RUNTIME_CLASS(CMyDoc),  
  RUNTIME_CLASS(CMainFrame),               //   main   SDI   frame   window  
  NULL);//注意,要设成空,这样消息才能在各个视图中传递  
  AddDocTemplate(pDocTemplate);
    
原创粉丝点击