MFC指針的獲取

一、獲取應用程序指針html CMyApp* pApp=(CMyApp*)AfxGetApp();程序員 二、獲取主框架指針 CWinApp 中的公有成員變量 m_pMainWnd 就是主框架的指針 CMainFrame* pMainFrame = (CMainFrame*)(AfxGetApp()->m_pMainWnd); 或者 CMainFrame* pMainFrame = (CMainF
相關文章
相關標籤/搜索