如题
谢谢(:

解决方案 »

  1.   

    CMainFrame *pMainFrame = (CMainFrame *)AfxGetMainWnd( );
    CMyView * pView = (CMyView *)pMainFrame->GetActiveView();
      

  2.   

    就是楼上的做法,不过单文档可能有多个视图,如下得到所有视图,并更新:void CMyDoc::OnRepaintAllViews()
    {
       POSITION pos = GetFirstViewPosition();
       while (pos != NULL)
       {
          CView* pView = GetNextView(pos);
          pView->UpdateWindow();
       }   
    }
      

  3.   

    哦,太感谢了,还想问一下,那在app类中也可以用同样的方法获得吧?