virtual POSITION GetFirstViewPosition( ) const;
Return Value
A POSITION value that can be used for iteration with the GetNextView member function.
Remarks
Call this function to get the position of the first view in the list of views associated with the document.
Example
//To get the first view in the list of views:
POSITION pos = GetFirstViewPosition();
CView* pFirstView = GetNextView( pos );
// This example uses CDocument::GetFirstViewPosition
// and GetNextView to repaint each view.
void CMyDoc::OnRepaintAllViews()
{
POSITION pos = GetFirstViewPosition();
while (pos != NULL)
{
CView* pView = GetNextView(pos);
pView->UpdateWindow();
}
}
// An easier way to accomplish the same result is to call
// UpdateAllViews(NULL);
CDocument Overview | Class Members | Hierarchy Chart
See Also CDocument::GetNextView