함수 참조1 [MFC] 자식 dialog에서 부모 dialog변수 및 함수 참조 먼저 자식 Dialog의 cpp파일에 부모 클래스의 헤더파일을 include 해줍니다. #include "ParentDlg.h" 변수의 경우는 ((CParentDlg *)GetParent())->m_flag = TRUE; //부모 클래스의 m_flag 변수 사용시 함수의 경우는 ((CParentDlg *)GetParent())->ParentFunction(filename); //ParentFunction이란 함수에 filename 파라메터를 넣어 호출한것입니다. 2012. 12. 24. 이전 1 다음