Подскажите как из документа получить доступ к MainFrame или\и из MainFrame к документу и из документа к View
Здравствуйте sasasasa, Вы писали:
S>Подскажите как из документа получить доступ к MainFrame или\и из MainFrame к документу и из документа к View
Вот таблица из MSDN:
Gaining Access to Other Objects in Your Application
Document:
Use
GetFirstViewPosition and
GetNextView to access the document's view list.
Call
GetDocTemplate to get the document template.
View:
Call
GetDocument to get the document.
Call
GetParentFrame to get the frame window.
Document frame window:
Call
GetActiveView to get the current view.
Call
GetActiveDocument to get the document attached to the current view.
MDI frame window:
Call
MDIGetActive to get the currently active CMDIChildWnd.
Здравствуйте sasasasa, Вы писали:
S>Подскажите как из документа получить доступ к MainFrame
CWnd* AfxGetMainWnd( );