일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- synology
- 옥션
- 平野綾
- MFC
- 마비노기
- 윈도우즈
- USB메모리
- youtube
- 한국어
- 오카자키 리츠코
- Okazaki Ritsuko
- 백업
- Microsoft
- php
- xml
- KBS한국어능력시험
- 프린터
- KBS
- 자바스크립트
- 파이어폭스
- vbscript
- 프로그램
- Firefox
- 맞춤법
- 岡崎律子
- 벤치마크
- VMware
- Hirano Aya
- gentoo
- 리눅스
Archives
- Today
- Total
ARCHIVE ...
MFC 클래스간 통신 본문
SDI에서 각 개체 얻는 방법
- App
CWinApp * pApp = (CWinApp*)AfxGetApp();
- MainFrame
CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd();
- Document
CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd(); CDocument *pDoc = CDocument *)pFrame->GetActiveDocument();
- View
CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd(); CView *pView = (CView *)pFrame->GetActiveView();
MDI에서 각 개체 얻는 방법
- App
CWinApp *pApp = (CWinApp*)AfxGetApp();
- MainFrame
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();
- ChildFrame
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd(); CChildFrame *pChild = (CChildFrame *)pFrame->GetActiveFrame();
- Document
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd(); CChildFrame *pChild = (CChildFrame *)pFrame->GetActiveFrame(); CDocument *pDoc = (CDocument *)pChild->GetActiveDocument();
- View
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd(); CChildFrame *pChild = (CChildFrame *)pFrame->GetActiveFrame(); CView *pView = (CView *)pChild->GetActiveView();
Comments