반응형
// 한 프로그램에서 실행된 Frame
CMainFrame* pFrm  = (CMainFrame*) AfxGetMainWnd(); 


// 활성화 되어 있는 View
CMyBankView* pView = (CMyBankView*) pFrm->GetActiveView();


// Document 가져오기 :: View 에서 사용
GetDocument()



ps. 헤더 파일 include 하고 헤더파일에서 에러 날시 해당 class 를 선언해줘야 한다.
반응형

'프로그래밍 > MFC' 카테고리의 다른 글

메세지맵 Class :: CCmdTarget  (0) 2009.02.11
DB 사용하기..  (0) 2009.02.11
srand(), rand() 함수 설명  (0) 2009.02.11
CString, Int, Double 변수들 변환  (0) 2009.02.11
Dialog 에 관련된 것들..  (0) 2009.02.11

+ Recent posts