礼品网站建设,做app_需要先做网站吗,东莞哪家纯设计公司做得好,公司网站404主窗口指针保存在CWinThread::m_pMainWnd中#xff0c;可以先调用AfxGetApp函数获得应用程序的指针#xff0c;然后通过应用程序的指针获得其主窗口的指针。 //获得应用程序指针CMy1_2App* pApp (CMy1_2App*)AfxGetApp();//获得主窗口指针CWnd* pMainWnd pApp-m_pMainW… 主窗口指针保存在CWinThread::m_pMainWnd中可以先调用AfxGetApp函数获得应用程序的指针然后通过应用程序的指针获得其主窗口的指针。 //获得应用程序指针CMy1_2App* pApp (CMy1_2App*)AfxGetApp();//获得主窗口指针CWnd* pMainWnd pApp-m_pMainWnd;CString strText _T();strText.Format(pMainWnd 0x%x\nthis 0x%x\n, pMainWnd, this);AfxMessageBox(strText);转载于:https://www.cnblogs.com/mars9/archive/2012/01/20/2327946.html