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