摘要:
访问应用程序的其它类获得CWinApp:-在CMainFrame,CChildFrame,CDocument,CView中直接调用AfxGetApp()或用theApp-在其它类中只能用AfxGetApp()获得CMainFrame:-在CMinApp中用AfxGetMainWnd()或者m_pMainWnd-在CChildFrame中可用GetParentFrame()-在其它类中用AfxGetMainWnd()获得CChildFrame:-在CView中用GetParentFrame()-在CMainFrame中用MDIGetActive()或GetActiveFrame()-在其它类中用 阅读全文