大约有 46,000 项符合查询结果(耗时:0.0436秒) [XML]
WSAAsyncSelect模型 - C/C++ - 清泛网 - 专注C/C++及内核技术
...工程,工程名为test,然后在testDlg.h中定义
#include "winsock2.h"
#pragma comment(lib, "WS2_32")
#define WM_SOCKET (WM_USER+1)
同时在该文件中加入一个自定义消息处理函数
afx_msg LRESULT OnSocketMsg(WPARAM wParam,LPARAM lParam);
在testDlg.cpp中定义
ON_MES...
c++ boost::multi_index composite keys efficiency - C/C++ - 清泛网 - 专注C/C++及内核技术
...s this mean that the structure is stored such that a lookup for a specific 2-part composite key will take O(n=1) time, i.e. is the container sorted such that there is a pointer directly to each item, or does the boost container retrieve a list that matches the first part of the composite key and the...
预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(...
...持不变:
c文件右键“属性”,设置界面同上。
2、方案二:使用静态lib库。
方案2:影响的文件比较多,则把它们都设置禁止预编译头的话仍然会使项目总体的编译速度大大降低,得不偿失。这时考虑可以为这组文件建...
MFC中使用CSplitterWnd分割窗口后视图大小的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术
...要的结果。
CSize sizeDummy;
m_wndSplitterH.CreateStatic(this, 2, 1);
if (!m_wndSplitterH.CreateView(0, 0, RUNTIME_CLASS(CGraphFrame), sizeDummy, pContext))
这时,你可以:
1、设置一下m_wndSplitterH的SetRowInfo属性函数,如:m_wndSplitterH.SetRowInfo(0,100,0);
...
[完整源码实例] 修改 CListCtrl 的标题栏字体颜色;重绘 CListCtrl 标题栏 ...
...rawItemStruct->CtlType == ODT_HEADER);
HDITEM hdi;
TCHAR lpBuffer[256];
hdi.mask = HDI_TEXT;
hdi.pszText = lpBuffer;
hdi.cchTextMax = 256;
GetItem(lpDrawItemStruct->itemID, &hdi); // Draw the button frame.
::DrawFrameControl(lpDrawItemStruct->hDC, &lpDrawItemStruct->rc...
CListCtrl 行高设置,自定义行高 - C/C++ - 清泛网 - 专注C/C++及内核技术
... if( bHighlight ) //如果被选中
{
pDC->SetTextColor(RGB(255,255,255)); //文本为白色
pDC->FillRect(rcBack, &CBrush(RGB(90,162,0)));
}
else
{
pDC->SetTextColor(RGB(0,0,0)); //文本为黑色
pDC->FillRect(rcBack, &CBrush(RGB(2...
XP风格按钮的实现 - C/C++ - 清泛网 - 专注C/C++及内核技术
...on类实现具体操作步骤如下:1.从互联网上下载XPButton类;2.创建基于对话框的MFC工程Test,将下载的XPButton.cpp和XPButt...方法一:利用XPButton类实现
具体操作步骤如下:
1.网上下载XPButton类;请参考《【工程源码】XPButton源码-XP风格...
C++ ADO Excel中RecordSet.Open打开记录的两个参数adOpenKeyset、adLockBat...
...t对象以只读方式启动,无法运行增、删、改等操作
2 adLockPrssimistic 当数据源正在更新时,系统会锁定其他用户的动作,以保数据一致性。
3 adLockOptimistic 当数据源正在更新时,系统不会锁定其他用户...
warning: xxx will be initialized after [-Wreorder] - C/C++ - 清泛网 - 专注C/C++及内核技术
...参数初始化列表。
Class C {
int a;
int b;
C():b(1),a(2){} //warning, should be C():a(2),b(1)
}
或者取消警告: -Wno-reorder。
warning initialized -Wreorder
Error: must call SetScrollSizes() or SetScaleToFitSize()问题的解决 - C...
...e.cx = size.cy = 4000;
SetScrollSizes(MM_TEXT,size);
}
解决方案2:
2)重载OnPrepareDC函数:
void CScanView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo)
{
// TODO: 在此添加专用代码和/或调用基类
m_nMapMode = MM_TEXT;
CScrollView::OnPrepareDC(pDC, pInfo...
