子调用父:
(视图)
CMainFrame *pFrame = (CMainFrame*)AfxGetApp()->m_pMainWnd;
CRFAutoTesterView * pView = (CRFAutoTesterView*)pFrame->GetActiveView();
(对话框)
CCproject * m_pParent= (CCproject*) GetParent();
父调用子:
在父.h中
public:
CCproject mychild;
在父.cpp中
mychild.XXxxxx
(对模态对话框实验结果,,,失败!)