Re: document/view архитектура
От: AlexRb  
Дата: 26.09.02 03:25
Оценка:
Здравствуйте 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.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.