2010. 4. 30. 00:27
얻는 방법
1.view 얻기
C###View* pView = (C###View*)((CMainFrame*)(AfxGetApp()->m_pMainWnd))->GetActiveView();
2.Doc 얻기
C###Doc pDoc = (C###Doc*)((CMainFrame*)(AfxGetApp()->m_pMainWnd))->GetActiveDocument();
3.기타
- 위와 같은 방법으로 Frame, Window도 얻을 수 있다.
C###View* pView = (C###View*)((CMainFrame*)(AfxGetApp()->m_pMainWnd))->GetActiveView();
2.Doc 얻기
C###Doc pDoc = (C###Doc*)((CMainFrame*)(AfxGetApp()->m_pMainWnd))->GetActiveDocument();
3.기타
- 위와 같은 방법으로 Frame, Window도 얻을 수 있다.
'Programming > MFC' 카테고리의 다른 글
MFC - 코드로 단축키 만들기 (0) | 2010.07.09 |
---|---|
MFC - 활동중인 View, Doc 가져오기 (0) | 2010.07.07 |
MFC - CString에서 char*로 변환 (0) | 2010.04.30 |