摘要:
1. 获取应用程序指针 与 主窗口指针//获得应用程序指针CDemoApp* pApp = (CDemoApp*)AfxGetApp();//获得主窗口指针CWnd* pMainWnd = pApp->m_pMainWnd;CString strText = _T("");strText.Format("pMainWnd=0x%X\nthis=0x%X\n", pMainWnd, this);AfxMessageBox(strText);2. 发送消息void CDemoDlg::OnTest() { //关闭窗口 SendMessage(WM_C 阅读全文