SDI/MDI 관련 포인터 및 뷰생성1 SDI/MDI 관련 포인터 및 뷰생성 I. SDI의 각 클래스 포인터 얻기애플리케이션 클래스 포인터 CTestApp *pApp = (CTestApp *)AfxGetApp();메인 프레임 클래스 포인터 CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();도큐먼트 클래스 포인터 CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd(); CTestDoc *pDoc = (CTestDoc *)pFrame->GetActiveDocument();뷰 클래스 포인터 CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd(); CTestView *pView = (CTestView *)pFrame->GetActiveView(); II. SDI 템플릿 등록B.. 2013. 4. 8. 이전 1 다음