摘要: #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 程序员大叔 阅读(1681) 评论(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 程序员大叔 阅读(1169) 评论(0) 推荐(0) 编辑
摘要: 在 OnInitDialog(Cdialog)里面添加 阅读全文
posted @ 2016-10-23 21:24 程序员大叔 阅读(2344) 评论(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 程序员大叔 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: 对于对话框,只需要重载默认的消息处理函数就行了: // 重载默认的消息处理函数,主要处理WM_MOVE WM_PAINT WM_NCPAINT WM_NCACTIVATE WM_NOTIFY这// 几个消息就可以了 LRESULT CMyDialog::DefWindowProc(UINT mess 阅读全文
posted @ 2016-10-23 17:33 程序员大叔 阅读(9644) 评论(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 程序员大叔 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 主要注意一下密钥的格式 阅读全文
posted @ 2016-10-08 15:51 程序员大叔 阅读(4425) 评论(0) 推荐(0) 编辑
摘要: import pylab pylab.mpl.rcParams['font.sans-serif'] = ['SimHei'] pylab.mpl.rcParams['axes.unicode_minus'] = False 阅读全文
posted @ 2016-09-28 15:10 程序员大叔 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: matplotlib是python最著名的绘图库,它提供了一整套和matlab相似的命令API,十分适合交互式地进行制图。而且也可以方便地将它作为绘图控件,嵌入GUI应用程序中。它的文档相当完备,并且Gallery页面中有上百幅缩略图,打开之后都有源程序。因此如果你需要绘制某种类型的图,只需要在这个 阅读全文
posted @ 2016-09-28 15:03 程序员大叔 阅读(4289) 评论(0) 推荐(0) 编辑
摘要: 密钥长度 1024 阅读全文
posted @ 2016-09-21 13:39 程序员大叔 阅读(3756) 评论(1) 推荐(0) 编辑