More actions
프레임 윈도우 클래스에서 도큐먼트/ 뷰 참조
- 도큐먼트 참조
CFrameWnd::GetActiveDocument 함수
virtual CDocument* GetActiveDocument();
- 뷰 참조
CView* GetActiveView() const;
뷰 클래스에서 프레임 / 도큐먼트 참조
- 프레임 참조
CFrameWnd* GetParentFrame() const;
- 도큐먼트 참조
CDocument* GetDocument() const;
도큐먼트 클래스에서 뷰 / 프레임 참조
- 뷰 참조
CView* pView = m_viewList.GetHead(); pView->UpdateWindwo();
- 프레임 참조
AfxGetMainWnd