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

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

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

... ... //.cpp void CIconMenu::DrawItem( LPDRAWITEMSTRUCT lpStruct ) { if (lpStruct->CtlType==ODT_MENU) { if(lpStruct->itemData == NULL) return; unsigned int m_state = lpStruct->itemState; CDC* m_dc = CDC::FromHandle(lpStruct->hDC); //m_dc.Attach(lpStruct->hDC); CString str = ...
https://www.tsingfun.com/it/cpp/1700.html 

为什么编译好的libcurl静态lib用不了? - C/C++ - 清泛网 - 专注C/C++及内核技术

...your CFLAGS. Otherwise the linker will look for dynamic import symbols. If you get linker error like "unknown symbol __imp__curl_easy_init ..." you have linked against the wrong (static) library. If you want to use the libcurl.dll and import lib, you don't need any extra CFLAGS, but use ...
https://www.tsingfun.com/it/cpp/1784.html 

c++ 代码调用nsis安装包实现静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术

... the window will be hidden. sei.nShow = SW_SHOWNORMAL; if (!ShellExecuteEx(&sei)) { DWORD dwStatus = GetLastError(); if (dwStatus == ERROR_CANCELLED) { // The user refused to allow privileges elevation. ...
https://www.tsingfun.com/it/cpp/1785.html 

c++ 代码提升权限,请求管理员身份运行权限 - C/C++ - 清泛网 - 专注C/C++及内核技术

... the window will be hidden. sei.nShow = SW_SHOWNORMAL; if (!ShellExecuteEx(&sei)) { DWORD dwStatus = GetLastError(); if (dwStatus == ERROR_CANCELLED) { // The user refused to allow privileges elevation. ...
https://www.tsingfun.com/it/cpp/2118.html 

MFC Dialog中嵌入View、动态创建View的方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...并显示。 { m_pDemoView = new CDemoView; ASSERT(m_pDemoView); if (!((CView*)m_pDemoView)->Create(NULL, NULL, WS_CHILD, CRect(0, 0, 0, 0), this, NULL, NULL)) { AfxMessageBox(_T("Create view failed")); return; } ... //显示FormView m_pDemoView->MoveWindow(rect); m_pDemoVi...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...EWORD()获得Winsocl版本的正确值,用于下面的加载Winscok库 if ( WSAStartup( MAKEWORD(2,0), &wsaData ) == 0 ) { //加载Winsock库,如果WSAStartup()函数返回值为0,说明加载成功,程序可以继续往下执行 if( gethostname ( name, sizeof(name)) == 0) { //...
https://www.tsingfun.com/it/cpp/2144.html 

解决rc中无法设置CComboBox下拉列表框高度的问题 - C/C++ - 清泛网 - 专注C...

...的!(在rc资源中无法调整高度)m_combo.SetItemHeight(-1,50);IfnIndexis–1,theheig...怎么修改CComboBox实例的高度,注意,不是下拉框的!(在rc资源中无法调整高度) m_combo.SetItemHeight(-1, 50); If nIndex is –1, the height of the edit-contro...
https://www.tsingfun.com/it/cpp/2177.html 

MFC中通过Tooltip类实现悬浮鼠标显示提示信息 - C/C++ - 清泛网 - 专注C/C++及内核技术

...常方便和简单方法如下: 1、在窗口中增加消息映射ON_NOTIFY_EX(TTN_NEEDTEXT, 0, SetTipText) SetTipText是个回调函数,名字叫什么无所谓,符合原型就行了,原型下面会说。 2、EnableToolTips(TRUE),使用这个方法调用这个函数是必不可...
https://www.tsingfun.com/it/opensource/2482.html 

c++ 经典的快速排序QuickSort完整代码片 - 开源 & Github - 清泛网 - 专注C/C++及内核技术

... i++; while (array[j] > pivot) j--; if (i <= j) { temp = array[i]; array[i] = array[j]; array[j] = temp; i++; j--; } } if (j > low) quickSort(array, low, j); ...
https://www.tsingfun.com/it/os... 

Linux下追踪程序退出(崩溃)思路 - 操作系统(内核) - 清泛网 - 专注C/C++及内核技术

... USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` if [ "$USER_IP" = "" ] then USER_IP=`hostname` fi if [ ! -d /tmp/dbasky ] then mkdir /tmp/dbasky chmod 777 /tmp/dbasky fi if [ ! -d /tmp/dbasky/${LOGNAME} ] then mkdir /tmp/dbasky/${LOGNAME} chmod 300 /tmp/dbasky/...