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

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

MFC对话框中处理Enter或Esc按键事件方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...e(MSG* pMsg); //.cpp BOOL CxxxDlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN) { switch(pMsg->wParam) { case VK_ESCAPE: //Esc按键事件 return TRUE; case VK_RETURN: //Enter按键事件 ...
https://www.tsingfun.com/it/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

...eAttributes(strPath); //空32,只读33,隐藏34,只读隐藏35 if (dwAttrs & FILE_ATTRIBUTE_READONLY && (dwAttrs < 34)) { //去掉文件只读属性 dwAttrs &= 0x3E; SetFileAttributes(strPath, dwAttrs); printf("File '%s' readonly attr is removed.\n", strPath); } else...
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/2125.html 

MFC CEdit控件自绘、MFC圆角输入框 - C/C++ - 清泛网 - 专注C/C++及内核技术

...#include "MyEdit.h" #include "../MemDC.h" #include "../CommonFunc.h" #ifdef _DEBUG #define new DEBUG_NEW #endif IMPLEMENT_DYNAMIC(CMyEdit, CEdit) CMyEdit::CMyEdit() { //m_crText = RGB(40, 40, 40); //m_crBorder = RGB(228,228,228); m_clrBackground = RGB(255, 255, 255); //背景颜...
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/cp... 

调用空智能指针对象的函数,Windows及Linux行为解析 - C/C++ - 清泛网 - 专...

...能调用。 因此,上例中的IsNull的写法不推荐,最好使用if(null)直接判断智能指针是否为空。 shared_ptr nullptr
https://www.tsingfun.com/it/cpp/c_string_h.html 

C/C++头文件string与string.h的区别及Mac平台的特殊性 - C/C++ - 清泛网 - ...

...较特殊,必须 #include <string>,可以用宏区分Mac平台: #if defined(_MACOSX) || defined(_IOS) #include <string> #else #include <string.h> #endif string 区别
https://www.fun123.cn 

App Inventor 2 中文网

... App Inventor 2 加载中 if (window.navigator.userAgent.indexOf("MSIE") != -1){ document.getElementById("unsupported").style.display = 'block';}function hide_loading() { document.getElementById("loading").style.display = 'none';}var _hmt = _hmt || ...
https://stackoverflow.com/ques... 

unsigned int vs. size_t

..."your compiler might make assumption about it": I would hope the compiler knows the exact range of values that size_t can represent! If it doesn't, who does? – Marc van Leeuwen Jun 15 '14 at 5:42 ...