Здравствуйте, Bingin, Вы писали:
B>Как получить доступ из
B>B>CMyDoc: public CDocument
B>
B>к
B>B>CMyView: public CView
B>
CDocument::GetFirstViewPosition() + CDocument::GetNextView().
//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();
}
}