解决方案 »

  1.   

    类似于 CMainFrame*   pFrame=(CMainFrame*)AfxGetMainWnd();  
    CListCtrlView* pView = (CListCtrlView*)pFrame->pListView;
    自己改改
      

  2.   

    COpengl2App *app=(COpengl2App*)AfxGetApp();CMainFrame *pFrame=(CMainFrame*)app->m_pMainWnd;CView* view=(CView*)pFrame->m_wndsplitter.GetPane(0,1);CControlView*pview=(CControlView*) viewpview->SetTimer(1,10,NULL);
    我用的是这几句。其中CMainFrame中定义CSplitterWnd m_wndsplitter;。但是调试运行到第四步就不行了。。
     
      

  3.   

     
     
    Quote: 引用 1 楼 foxriver_gjg1989 的回复:

     
    COpengl2App *app=(COpengl2App*)AfxGetApp();CMainFrame *pFrame=(CMainFrame*)app->m_pMainWnd;CView* view=(CView*)pFrame->m_wndsplitter.GetPane(0,1);CControlView*pview=(CControlView*) viewpview->SetTimer(1,10,NULL);
    我用的是这几句。其中CMainFrame中定义CSplitterWnd m_wndsplitter;。但是调试运行到第四步就不行了。。