09 2012 档案

摘要:如果后面的括号里带有形参则为后置单目运算符重载,无形参则为前置单目运算符重载。 阅读全文
posted @ 2012-09-17 20:29 web8 阅读(2260) 评论(0) 推荐(0)
摘要:基本用法: CButton* btn = (CButton*)GetDlgItem(IDC_BUTTON_SEND); btn->SetWindowTextW(_T("hello")); 阅读全文
posted @ 2012-09-12 21:19 web8 阅读(29382) 评论(2) 推荐(0)
摘要:1如何获取应用程序的实例句柄? 应用程序的实例句柄保存在CWinApp m_hInstance 中,可以这么调用AfxGetInstancdHandle获得句柄. HANDLE hInstance=AfxGetInstanceHandle() 2 如何通过代码获得应用程序主窗口的指针? 主窗口的 指针保存在CWinThread::m_pMainWnd中,调用AfxGetMainWnd实现。 AfxGetMainWnd() ->ShowWindow(SW_SHOWMAXMIZED) //使程序最大化. 阅读全文
posted @ 2012-09-09 20:02 web8 阅读(1105) 评论(0) 推荐(0)