이건 작년이군....

Picture 2005. 10. 29. 00:21 Posted by HisPark

 

 






속초 횟집.

이때 핸드폰을 바다에 퐁당해서 확실히 기억나네....
* hispark님에 의해서 게시물 이동되었습니다 (2005-12-25 23:16)

이건 재작년 사진이군..

Picture 2005. 10. 29. 00:16 Posted by HisPark

 



시간이 참 빨리가내..

언제적인지 ....사비사 계곡에서...

Picture 2005. 10. 28. 23:32 Posted by HisPark

 




기억이 나질 않네
* hispark님에 의해서 게시물 이동되었습니다 (2005-12-25 23:16)

'Picture' 카테고리의 다른 글

D7000 또다른 시계탑  (0) 2011.03.28
D7000 부천 판타스틱 스튜디오 시계탑  (0) 2011.03.28
올해 사진인데 ... 중앙박물관 Grand open...;;  (0) 2005.11.01
이건 작년이군....  (0) 2005.10.29
이건 재작년 사진이군..  (0) 2005.10.29
CTestApp, CMainFrame, CTestDoc, CTestView

Afx 로 시작하는 것들은 전역함수들 이니까..
실은 어디에서나 사용 가능하겠죠....

◎ CTestApp에서
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
CTestDoc* pDoc = (CTestDoc*)((CMainFrame*)AfxGetMainWnd())->GetActiveDocument();
CTestView* pView = (CTestView*)((CMainFrame*)AfxGetMainWnd())->GetActiveView();

◎ CMainFrame에서
CTestApp* pApp = (CTestApp*)AfxGetApp();
CTestDoc* pDoc = (CTestDoc*)GetActiveDocument();
CTestView* pView = (CTestView*)GetActiveView();

◎ CTestDoc에서
CTestApp* pApp = (CTestApp*)AfxGetApp();
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
CTestView* pView = (CTestView*)((CMainFrame*)AfxGetMainWnd())->GetActiveView();

◎ CTestView에서
CTestApp* pApp = (CTestApp*)AfxGetApp();
CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();
                  or (CMainFrame*)GetParent();
CTestDoc* pDoc = (CTestDoc*)((CMainFrame*)AfxGetMainWnd())->GetActiveDocument();
              or (CTestDoc*)GetDocument();


메인 -> doc -> 뷰 -> 기타 잡스러운 헤더 순으로 include!