Call parent dialog variable and class from child dialog (MFC)


#include "ParentDlg.h"
((CParentDlg *)GetParent())->m_index= 3;m_index= 3;
((CParentDlg *)GetParent())->anyfunction();

Comments

Popular posts from this blog

[VS2010][VS2015] "stdafx.h 을 포함 소스를 찾을 수 없습니다" 에러 해결법