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

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

Error: must call SetScrollSizes() or SetScaleToFitSize()问题的解决 - C...

...nPrepareDC(CDC* pDC, CPrintInfo* pInfo) { ASSERT_VALID(pDC); #ifdef _DEBUG if (m_nMapMode == MM_NONE) { TRACE(traceAppMsg, 0, "Error: must call SetScrollSizes() or SetScaleToFitSize()"); TRACE(traceAppMsg, 0, "\tbefore painting scroll view.\n"); --->...
https://www.tsingfun.com/it/cpp/2123.html 

MFC Static透明背景色的实现、Static控件自绘、Static字体修改 - C/C++ - ...

...起作用的在这句 HBRUSH hb = (HBRUSH)GetStockObject(NULL_BRUSH); if(CTLCOLOR_STATIC == nCtlColor) { pDC->SetTextColor(m_crText); pDC->SetBkColor(m_crBk); hb = m_hbkbr; } return hb; } 这种方式比较简单,仅仅需要背景色透明的话采用这种较...
https://www.tsingfun.com/it/cpp/2137.html 

MFC AfxMessageBox改变标题的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...的改法可能导致内存泄露,下面这样改就万无一失了: if (m_pszAppName != nullptr) { free((void*)m_pszAppName); } m_pszAppName = _tcsdup(_T("What you want!")); (完) MFC AfxMessageBox 标题
https://www.tsingfun.com/it/cpp/2140.html 

解决WaitForSingleObject阻塞UI线程的问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

...BJECT_0 + 1: //get the message from Queue //and dispatch it to specific window PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); DispatchMessage(&msg); continue; default: break; // unexpected failure } break; } //显示主界面 ... 使用 MsgWaitForMultipleObjects...
https://www.tsingfun.com/it/cpp/2154.html 

MFC SetCursor设置手型鼠标光标 - C/C++ - 清泛网 - 专注C/C++及内核技术

... __super::OnMouseMove(nFlags, point); int nIndex = HitTest(point); if ( nIndex > -1 ) { SetCursor(AfxGetApp()->LoadStandardCursor(IDC_HAND)); //手型光标 ... } else { SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW)); //普通箭头光标 ... } ... } ...
https://www.tsingfun.com/it/cpp/2176.html 

OnMouseMove nFlags的作用 - C/C++ - 清泛网 - 专注C/C++及内核技术

...TTON当鼠标中键按下时。 MK_RBUTTON当鼠标右键按下时. MK_SHIFT当SHIFT按下时。 注:point是相对位置,例如当窗口的左上角坐标为(10,10)那么当鼠标在屏幕的(10,10)像素点的时候,OnMouseMove函数point值为(0,0)因为是相对窗口左上...
https://www.tsingfun.com/it/opensource/390.html 

强烈推荐一款非常mini的代码高亮开源软件--prism - 开源 & Github - 清泛网...

...后,最终的展示效果如下: string limitSql = string.Empty; if (!string.IsNullOrEmpty(CustomerNo)) limitSql += string.Format(" and t.customerno='{0}'", CustomerNo); 代码高亮 开源软件 prism
https://www.tsingfun.com/it/bigdata_ai/1082.html 

在MongoDB中模拟Auto Increment - 大数据 & AI - 清泛网 - 专注C/C++及内核技术

...', 'seq'); $seq = $instance->db->command(array( 'findAndModify' => 'seq', 'query' => array('_id' => $namespace), 'update' => array('$inc' => array('id' => $option['step'])), 'new' => true, )); if (isset($seq['value']['id...
https://www.tsingfun.com/it/bigdata_ai/1800.html 

C# 操作MongoDb插入、更新、查询 - 大数据 & AI - 清泛网 - 专注C/C++及内核技术

...base("admin"); var collection = db.GetCollection("MonLogs").Find(query); if (collection != null) { foreach (var col in collection) { string id = MongoDataHelper.GetString(col, "_id"); } } 提示函数过期警告: warning CS0618: “MongoDB.Driver.MongoServer.Create(s...
https://www.tsingfun.com/it/tech/1050.html 

记一次LVS/Nginx环境下的访问控制 - 更多技术 - 清泛网 - 专注C/C++及内核技术

... geo $bad { default 0; x.y.z.0/24 1; } location / { if ($bad) { return 403; } } 关于 GEO 模块的例子,有一些不错的资料可供参考,这里我就不多说了。 LVS Nginx 访问控制 Graphite GEO