大约有 4,000 项符合查询结果(耗时:0.0068秒) [XML]

https://www.tsingfun.com/it/cpp/1547.html 

MFC 修改对话框图标 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 修改对话框图标在对应对话框的初始化函数OnInitDialog()中,添加以下代码:HICON m_hIcon;m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); 主框架的...在对应对话框的初始化函数OnInitDialog()中,添加以下代码: HICON m_hIcon; m_hIcon = AfxGetApp()->...
https://www.tsingfun.com/it/cpp/1558.html 

MFC 设置控件字体,颜色,大小,粗体,下划线等 - C/C++ - 清泛网 - 专注C/...

MFC 设置控件字体,颜色,大小,粗体,下划线等参考代码:CFont *f = new CFont; f->CreateFont(16, nHeight 0, nWidth ...参考代码: CFont *f = new CFont; f->CreateFont(16, // nHeight 0, // nWidth 0, // nEsca...
https://www.tsingfun.com/it/cpp/1563.html 

mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

mfc spin control 用法BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)END_MESSAGE_MAP().h:a...BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg) END_MESSAGE_MAP() .h:afx_msg v...
https://www.tsingfun.com/it/cpp/1566.html 

MFC MDI程序, 多个子窗体之间切换时触发什么事件(消息)? - C/C++ - 清泛网...

MFC MDI程序, 多个子窗体之间切换时触发什么事件(消息)?WM_MDIACTIVATE消息代码:afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);消息注册:ON_WM_MDIACTIVATE()切换Tab即可触发断点:WM_MDIACTIVATE消息 代码:afx_msg void OnMD...
https://www.tsingfun.com/it/cpp/1574.html 

MFC 多线程编程简单实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 多线程编程简单实例简单的例子:#include "stdafx.h"#include <windows.h>DWORD WINAPI ThreadProc(LPVOID lpParam){ printf("ThreadProc...简单的例子: #include "stdafx.h" #include <windows.h> DWORD WINAPI ThreadProc(LPVOID lpParam) { printf("ThreadProc\n"); ...
https://www.tsingfun.com/it/cpp/1580.html 

MFC窗口设置TopMost置顶的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC窗口设置TopMost置顶的几种方法方法一:网上常见的pDlg->SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);或pDlg->SetWindowPos(pDlg->GetStyle() & WS...方法一:网上常见的 pDlg->SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); 或 pDlg-...
https://www.tsingfun.com/it/cpp/1589.html 

解决:调MFC dll时发生AfxGetInstanceHandle()断言错误 - C/C++ - 清泛网 -...

解决:调MFC dll时发生AfxGetInstanceHandle()断言错误调用HINSTANCE hInst = AfxGetInstanceHandle();程序在ASSERT(afxCurrentInstanceHandle != NULL);崩溃说明:这个函数使你能够获得当... 调用HINSTANCE hInst = AfxGetInstanceHandle(); 程序在ASSERT(afxCurrentInstanceHand...
https://www.tsingfun.com/it/cpp/1592.html 

MFC CString与std::string互转 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC CString与std::string互转CString cstr;std::string stdstr;非Unicode:stdstr.assign( (LPSTR) (LPCTSTR) cstr); 或者 stdstr = std::string( (LPSTR) (...CString cstr; std::string stdstr; 非Unicode: stdstr.assign( (LPSTR) (LPCTSTR) cstr); 或者 stdstr = std::string( (LPSTR) (LPCTSTR)...
https://www.tsingfun.com/it/cpp/1605.html 

MFC 菜单背景色设置(菜单重绘) - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 菜单背景色设置(菜单重绘)先上效果图:源码下载(来自CSDN,感谢原作者):QTOOLS.rar简单解析下:最终是通过CMenu菜单的OnDrawItem()函数中重新绘制菜单项,填充背...先上效果图: 源码下载(来自CSDN,感谢原作者):QTO...
https://www.tsingfun.com/it/cpp/1920.html 

MFC对话框中处理Enter或Esc按键事件方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC对话框中处理Enter或Esc按键事件方法重载PreTranslateMessage虚函数,从而实现对消息的截获处理,替代Enter或Esc按钮默认的确定功能。源码如下: .hvirtual BOOL PreTransla...重载PreTranslateMessage虚函数,从而实现对消息的截获处理,替代...