반응형

[MFC] Templete에 설정된 각 클래스 접근(SDI)

 

[CWinApp]

CTestApp *pApp = (CTestApp *)AfxGetApp();

 

[CMainFrame]

CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();


[CView]

CTestView *pView = (CTestView *)pFrame->GetActiveView();

 

[CDocument]

CTestDoc *pDoc = (CTestDoc *)pFrame->GetActiveDocument();

 


반응형

+ Recent posts