在框架的app部分有如下代码:
         CTestDlg dlg;
m_pMainWnd = &dlg;
想在自己写的MyClass.cpp中操作以上变量,请问如何实现?