CDocument 䳺 -, . - ' ' . ' , , ' ' . (iterator) , - GetFirstViewPosition ' '. POSITION.
CDocument , , ' ' POSITION. POSITION MFC . , , , , . , . , - GetFirstViewPosition ' , , - GetNextView, .
, , ' ' , , :
POSITION posView = GetFirstViewPosition{);
while {posView!= NULL)
{
CView *pView = GetNextView(posView);
// -
}
, . , , , - ' UpdateAllViews. , , UpdateAllViews. - CView::OnUpdate.
-, ' ' ( AddView RemoveView), . ( , ), . ֳ , f MFC ( ).
( h ) - SetModif iedFlag. SetModif iedFlag , MFC ' , , . , - IsModif ied.
- SetTitle ' . , , ( SDI MDI).
SetPathName , GetPathName . , , , GetDocTemplate.