大约有 37,000 项符合查询结果(耗时:0.0481秒) [XML]
CreateWindow()动态创建一个EditBox - C/C++ - 清泛网 - 专注C/C++及内核技术
... // 创建EditBox
HWND m_wndEdit = CreateWindow(_T("EDIT"), 0, WS_CHILD | WS_VISIBLE | ES_WANTRETURN,
70, 4, 60, 16, m_hWnd, 0, 0, 0);
// 显示
::ShowWindow(m_wndEdit, SW_SHOW);
常见错误解决思路:
1.创建失败,不显示输入框等...
cgridctrl 单元格下拉,单元格事件 - C/C++ - 清泛网 - 专注C/C++及内核技术
...
{
NM_GRIDVIEW* pItem = (NM_GRIDVIEW*) pNotifyStruct;
if(pItem->iRow >0 || pItem->iRow < m_gridDetail.GetRowCount())
{
if(2 == pItem->iColumn) //列号
{
//do something.
}
}
*pResult = 0;
}
另外,附上单元格下拉的代码:
#include "GridCtrl_src/GridCellCom...
c++ 代码调用nsis安装包实现静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术
...++ 代码调用nsis安装包实现静默安装TCHAR szCurPath[MAX_PATH] = {0};GetCurrentDirectory(MAX_PATH, szCurPath);TCHAR szFile[MAX_PATH] = {0};_stprintf_s(szFile, ...
TCHAR szCurPath[MAX_PATH] = {0};
GetCurrentDirectory(MAX_PATH, szCurPath);
TCHAR szFile[MAX_PATH] = {0};
_stprintf_s(szFil...
c/c++如何获取CPU的序列号? - C/C++ - 清泛网 - 专注C/C++及内核技术
...e "stdafx.h"#include <afx.h>CString GetCpuSerial(){unsigned long st1 = 0;un...获取CPU序列表的完整实例代码如下:
#include "stdafx.h"
#include <afx.h>
CString GetCpuSerial()
{
unsigned long st1 = 0;
unsigned long st2 = 0;
unsigned long s1,s2;
unsigned ...
error C2872: “count”: 不明确的符号 - C/C++ - 清泛网 - 专注C/C++及内核技术
...flict.cpp(4) : int count 或 C: Program Files Microsoft Visual Studio 11.0 V...error C2872: “count”: 不明确的符号
可能是“conflict.cpp(4) : int count” 或 “C:\Program Files\Microsoft Visual Studio 11.0\VC\INCLUDE\xutility(3251) : iterator_traits<_Iter>::difference_type std::cou...
MiniDumpWriteDump 记录dmp文件的简单实例(附调试方法) - C/C++ - 清泛网...
...ler(LPEXCEPTION_POINTERS pExceptionPointers)
{
char szFile[MAX_PATH] = {0};
SYSTEMTIME st = {0};
GetLocalTime(&st);
sprintf_s(szFile, "xxx_%d%02d%02d_%02d%02d%02d.dmp",
st.wYear,
st.wMonth,
st.wDay,
st.wHour,
st.wMinute,
st.wSecond);
HANDLE hDmpFile = ::CreateFileA(sz...
XP风格按钮的实现 - C/C++ - 清泛网 - 专注C/C++及内核技术
...txt改名为 “程序名.manifest”就可以了。
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity name="XP style manifest" processorArchitecture="x86" version="1.0.0.0" type="win32"/>
<depe...
MFC RoundRect、FillRect等函数如何设置颜色 - C/C++ - 清泛网 - 专注C/C++及内核技术
...如何设置颜色RoundRect 颜色: 定义一个画刷 CBrush Brush(RGB(0,0,0)); 用画刷填充矩形pDC->FillRect (&rectEdit,&Brush);FillRect(FillSolidRec...RoundRect 颜色:
//定义一个画刷
CBrush Brush(RGB(0,0,0));
//用画刷填充矩形
pDC->FillRect (&rectEdit, &Brush);
...
MFC中通过Tooltip类实现悬浮鼠标显示提示信息 - C/C++ - 清泛网 - 专注C/C++及内核技术
...法如下:
1、在窗口中增加消息映射ON_NOTIFY_EX(TTN_NEEDTEXT, 0, SetTipText)
SetTipText是个回调函数,名字叫什么无所谓,符合原型就行了,原型下面会说。
2、EnableToolTips(TRUE),使用这个方法调用这个函数是必不可少的.建议在CDialog...
vs2010编译boost若干问题解决 - 开源 & Github - 清泛网 - 专注C/C++及内核技术
vs2010编译boost若干问题解决首先说下环境,win7,vs2010。先在http: www.boost.org users download 上下载boost安装包,我下的是1.52.0版。按照说明,直接运行bootstr...首先说下环境,win7,vs2010。
先在http://www.boost.org/users/download/上下载boost安...