摘要:
访问应用程序的其它类获得CWinApp:-在CMainFrame,CChildFrame,CDocument,CView中直接调用AfxGetApp()或用theApp-在其它类中只能用AfxGetApp()获得CMainFrame:-在CMinApp中用AfxGetMainWnd()或者m_pMainWnd-在CChildFrame中可用GetParentFrame()-在其它类中用AfxGetMainWnd()获得CChildFrame:-在CView中用GetParentFrame()-在CMainFrame中用MDIGetActive()或GetActiveFrame()-在其它类中用 阅读全文
posted @ 2011-02-11 15:01
天堂大鸟
阅读(555)
评论(2)
推荐(0)

浙公网安备 33010602011771号