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

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

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

...图标在对应对话框的初始化函数OnInitDialog()中,添加以下代码:HICON m_hIcon;m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); 主框架的...在对应对话框的初始化函数OnInitDialog()中,添加以下代码: HICON m_hIcon; m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFR...
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/1566.html 

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

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

一款IP:端口监控工具 服务器端口监控工具[附源码] - C/C++ - 清泛网 - 专注...

...w.tsingfun.com/down/soft/74.html 源码下载:TradeMonitor.zip 主要代码请参考:《mfc telnet 端口,代码实现、不调telnet.exe》 表格采GridCtrl(Demo源码):《MFC Grid control 2.27》 端口监控 工具 源码
https://www.tsingfun.com/it/cpp/1602.html 

CListCtrl 点击/双击怎么样获得行号,列号 - C/C++ - 清泛网 - 专注C/C++及内核技术

CListCtrl 点击/双击怎么样获得行号,列号直接看代码,无论列宽是否改变都没问题,亲测有效:afx_msg void OnClickListHqbb(NMHDR* pNMHDR, LRESULT* pResult);...ON_NOTIFY(NM...直接看代码,无论列宽是否改变都没问题,亲测有效: afx_msg void OnClic...
https://www.tsingfun.com/it/cpp/1622.html 

CString的截取字符串,截取ip:port - C/C++ - 清泛网 - 专注C/C++及内核技术

CString的截取字符串,截取ip:portCString截取ip:port,代码如下:CString strIpPort = "127.0.0.1:8888";CString strIp, strPort;int index = strIpPort.Find('...CString截取ip:port,代码如下: CString strIpPort = "127.0.0.1:8888"; CString strIp, strPort; int index = strIpPort.Fi...
https://www.tsingfun.com/it/cpp/1964.html 

c/c++如何获取CPU的序列号? - C/C++ - 清泛网 - 专注C/C++及内核技术

c/c++如何获取CPU的序列号?获取CPU序列表的完整实例代码如下:#include "stdafx.h"#include <afx.h>CString GetCpuSerial(){unsigned long st1 = 0;un...获取CPU序列表的完整实例代码如下: #include "stdafx.h" #include <afx.h> CString GetCpuSerial() { unsigne...
https://www.tsingfun.com/it/cpp/2053.html 

C++ 获得当前执行文件的路径 - C/C++ - 清泛网 - 专注C/C++及内核技术

C++ 获得当前执行文件的路径代码如下:TCHAR szPath[_MAX_PATH] = {0};GetModuleFileName(NULL, szPath, MAX_PATH);PathRemoveFileSpec( szPath ); 去掉文件...代码如下: TCHAR szPath[_MAX_PATH] = {0}; GetModuleFileName(NULL, szPath, MAX_PATH); PathRemoveFileSpec( szPath ); //...
https://www.tsingfun.com/it/cpp/2090.html 

error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...

...: 不能将参数 1 从“const char [14]”转换为“std::string &出错代码:#include <iostream>#include <string>using std::cout;using std::endl;using std::string; const引形参举例 非const...出错代码: #include <iostream> #include <string> using std::cout; using std::endl...
https://www.tsingfun.com/it/cpp/2097.html 

与迭代器失效相关的错误,例如:0x008D1127 处有未经处理的异常(在 prog34.e...

...xe 中): 0xC0000005: 读取位置 0x010AC000 时发生访问冲突。错误代码:#include <iostream>#include <vector>using std::vector;using std::cout;using std::endl; 迭代器失效举例-避免存储end...错误代码: #include <iostream> #include <vector> using std::vector; using s...