摘要:
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 阅读全文
posted @ 2013-11-26 18:58
onlyou13
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号