+ Reply to Thread
Results 1 to 2 of 2

Thread: How to enumerate all the View object of the CDocument class in MFC?

  1. #1

    How to enumerate all the View object of the CDocument class in MFC?

    How to enumerate all the View object of the CDocument class in MFC?

  2. #2
    Example:

    Code:
    void CMydocument::EnumerateViews()
    {
       //get the first view object
       POSITION position = GetFirstViewPosition() ;
    
       /loop through the next until last...
       while (NULL != position)
       {
          CView* pView = GetNextView(NULL) ;
    
    	  //do whatever you want with View object... 
       }
    }

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts