如题

解决方案 »

  1.   

    GetFirstViewPosition Returns the position of the first in the list of views; used to begin iteration. 
    GetNextView Iterates through the list of views associated with the document. AfxGetMainWnd  GetActiveFrame Returns the active CFrameWnd object.
      

  2.   

    得到相关视图
    GetFirstViewPosition
    GetNextView
      

  3.   


    视图:
    POSITION pos = GetFirstViewPosition();
       while (pos != NULL)
       {
          CView* pView = GetNextView(pos);
       }Frame:AfxGetMainWnd()  或用pView->GetParentFrame();