10 2016 档案

摘要:CPaintDC dc(this); HICON hIcon = (HICON)::LoadImage(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDI_ICON),IMAGE_ICON, 16,16,0); ::DrawIconEx(dc.GetSafeHdc(), 6, 2, hIcon, 16, 16, 0, NULL, DI_NORMAL | DI_... 阅读全文
posted @ 2016-10-27 19:55 程序员大叔 阅读(1947) 评论(0) 推荐(0)
摘要:使用: 绘制: 阅读全文
posted @ 2016-10-27 14:49 程序员大叔 阅读(6408) 评论(0) 推荐(0)
摘要:#include HIMC m_hImc; // 全局或者成员变量 // Function for Disabling IME void CMyDialog::DisableIME() { HWND hWnd = GetDlgItem(IDC_EDIT1)->m_hWnd; if (hWnd && IsWindow(hWnd)) { // Ge... 阅读全文
posted @ 2016-10-27 10:35 程序员大叔 阅读(1731) 评论(0) 推荐(0)
摘要:HBITMAP IconToBitmap(HICON hIcon, SIZE* pTargetSize = NULL) { ICONINFO info = {0}; if(hIcon == NULL || !GetIconInfo(hIcon, &info) || !info.fIcon) { re 阅读全文
posted @ 2016-10-26 11:10 程序员大叔 阅读(1192) 评论(0) 推荐(0)
摘要:在 OnInitDialog(Cdialog)里面添加 阅读全文
posted @ 2016-10-23 21:24 程序员大叔 阅读(2441) 评论(0) 推荐(0)
摘要:void CMouseClickDlg::OnLButtonDown(UINT nFlags, CPoint point) { CDialogEx::OnLButtonDown(nFlags, point); CRect rt; m_Title.GetWindowRect(&rt); ScreenToClient(&rt); if ((point.x >=... 阅读全文
posted @ 2016-10-23 17:44 程序员大叔 阅读(1255) 评论(0) 推荐(0)
摘要:对于对话框,只需要重载默认的消息处理函数就行了: // 重载默认的消息处理函数,主要处理WM_MOVE WM_PAINT WM_NCPAINT WM_NCACTIVATE WM_NOTIFY这// 几个消息就可以了 LRESULT CMyDialog::DefWindowProc(UINT mess 阅读全文
posted @ 2016-10-23 17:33 程序员大叔 阅读(9903) 评论(0) 推荐(0)
摘要:使用 python setup.py py2exe 打包时出现 py2exe error: [Errno 2] No such file or directory: 'MSVCP90.dll' 解决方法 #setup.py from distutils.core import setup impor 阅读全文
posted @ 2016-10-18 16:36 程序员大叔 阅读(927) 评论(0) 推荐(0)
摘要:主要注意一下密钥的格式 阅读全文
posted @ 2016-10-08 15:51 程序员大叔 阅读(4519) 评论(0) 推荐(0)