일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- VMware
- 平野綾
- Okazaki Ritsuko
- 백업
- Microsoft
- 자바스크립트
- USB메모리
- 마비노기
- MFC
- Firefox
- Hirano Aya
- 오카자키 리츠코
- 프로그램
- xml
- 윈도우즈
- 파이어폭스
- synology
- KBS한국어능력시험
- youtube
- vbscript
- 프린터
- 벤치마크
- KBS
- 한국어
- 옥션
- 岡崎律子
- 리눅스
- php
- 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