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

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

ThreadXxx.h:100: error: ‘pthread_t’ was not declared in this scope -...

...头文件 usr include bits pthreadtypes.h中定义:typedef unsigned long int pthread_t;它是一个线程的标识符。#include <pthread.h> 解决。pthread_t在头文件/usr/include/bits/pthreadtypes.h中定义: typedef unsigned long int pthread_t; 它是一个线程的标识符。 #inc...
https://www.tsingfun.com/it/cpp/1546.html 

怎样用SendMessage发送LVN_COLUMNCLICK消息? - C/C++ - 清泛网 - 专注C/C++及内核技术

...VIEW);部分代码示例如下:BOOL ClickListColumn(CListCtrl& listCtrl, int index){ ...SendMessage(WM_NOTIFY, CtrlID, NM_LISTVIEW); 部分代码示例如下: BOOL ClickListColumn(CListCtrl& listCtrl, int index) { if(index >= listCtrl.GetHeaderCtrl()->GetItemCount()) ...
https://www.tsingfun.com/it/cpp/1561.html 

DoModal() 不显示的问题总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

DoModal() 不显示的问题总结int nResponse = dlg.DoModal();对话框窗口不显示,返回值为-1。出现这种情况一般是.rc资源文件的问题导致。1、核对一下resource.h,本...int nResponse = dlg.DoModal();对话框窗口不显示,返回值为-1。 出现这种情况一...
https://www.tsingfun.com/it/cpp/1574.html 

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

...fx.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"); return -1; } int _tmain(int argc, _TCHAR* argv[]) {...
https://www.tsingfun.com/it/cpp/1576.html 

截图软件截图区域以外背景变灰的实现--AlphaBlend - C/C++ - 清泛网 - 专注...

截图软件截图区域以外背景变灰的实现--AlphaBlendOnPaint()方法中: ------------画黑色背景---------------- COLORREF bgColor =...OnPaint()方法中: // ------------画黑色背景---------------- COLORREF bgColor = RGB(0, 0, 0); char alpha = (255...
https://www.tsingfun.com/it/cpp/1602.html 

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

...:OnClickList(NMHDR* pNMHDR, LRESULT* pResult) { LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR); int row = pNMLV->iItem; int col = pNMLV->iSubItem; CString str; str.Format("行号:%d, 列号:%d", row, col); AfxMessageBox(str); } CListCtrl 行号 列号
https://www.tsingfun.com/it/cpp/1622.html 

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

...代码如下: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.Find(':'); if (index > 0) { strIp = strIpPort.Left(index); s...
https://www.tsingfun.com/it/cpp/1875.html 

c语言字符串常量内容是否可以通过指针修改 - C/C++ - 清泛网 - 专注C/C++及内核技术

...修改答案是:不行。尝试修改的话,运行时程序会崩溃。int main(){ char str1[40]="hello world!"; char *str1="hello world!"...答案是:不行。尝试修改的话,运行时程序会崩溃。 int main() { char str1[40]="hello world!"; //char *str1="hello world!...
https://www.tsingfun.com/it/cpp/1951.html 

[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...

...istCtrl.InsertColumn(2, _T("备注"), LVCFMT_LEFT, 100); //插入行 int nRow = m_ListCtrl.InsertItem(0, _T("1")); m_ListCtrl.SetItemText(nRow, 1, _T("www.tsingfun.com")); //设置数据 m_ListCtrl.SetItemText(nRow, 2, _T("无")); CFont *f = new CFont; f->CreateFont(13, // nHe...
https://www.tsingfun.com/it/cpp/1964.html 

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

...,edx mov s2,ecx } st2 = s1+s2; memset(&CPUSERIAL,0,20); sprintf_s(CPUSERIAL,"%08X",st1+st2); return CPUSERIAL; } int _tmain(int argc, _TCHAR* argv[]) { printf("%s\n", GetCpuSerial()); return 0; } 主要用到汇编指令 cpuid。 cpuid指令 cpuid就是一...