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

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

CreateWindow()动态创建一个EditBox - C/C++ - 清泛网 - 专注C/C++及内核技术

...; //::SetWindowLong(m_wndEdit, GWL_ID, IDC_EDIT_SEARCH); //效果上面一样 BEGIN_MESSAGE_MAP(CMainDlg, CDialogEx) ... ON_EN_CHANGE(IDC_EDIT_SEARCH, OnSearchEditCommand) END_MESSAGE_MAP() void CMainDlg::OnSearchEditCommand() { CString strSearch; ...
https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... DDX_Text(pDX, IDC_EDIT_TEST, m_editTest); } 这样就绑定了控件一个数据变量,当控件数据发生变化Updatedata(TRUE)后就会反映到变量上。其他类型变量也一样。 Updatedata(TRUE) :将控件的值赋值给成员变量; Updatedata(FALSE) : 将成员...
https://www.tsingfun.com/it/cpp/1786.html 

Linux常用命令(持续更新...) - C/C++ - 清泛网 - 专注C/C++及内核技术

...-depth=1 查找文件(例如/usr目录下查找包含'apache'的目录文件): find /usr -name apache find /usr -name apache -type f (只找文件) find /usr -name apache -type d (只找目录) 查看进程: netstat -ntpl 解压: tar -zxvf xxx.tar.gz tar -xvf xxx.tar...
https://www.tsingfun.com/it/cpp/1922.html 

MFC非客户区完美自绘(标题栏,边框,标题按钮)例子 - C/C++ - 清泛网 - 专...

...代码是用VS2008+SP1开发的。 没什么关键技术,就是NCPAINTNCCALLSIZE这两个处理好。绘制的时候用CWindowDC dc(this);,然后设置绘制的裁剪区域,按钮用Dui的思想绘制并封装成一个类CDUIButton,这样可以随便往标题添加任何按钮。 以...
https://www.tsingfun.com/it/cpp/2041.html 

error C2804:binary \'operator +\' has too many parameters - C/C++ - 清泛网 - 专注C/C++及内核技术

...对称的操作符,如算术操作符、相等操作符、关系操作符位操作符,最好定义为普通非成员函数。因此+应该重载为普通非成员函数。这里重载为成员函数时多了一个this形参,故对于+操作符来说,出现参数过多的错误。 即书...
https://www.tsingfun.com/it/cpp/2093.html 

error C2662: “Screen::move”: 不能将“this”指针从“const Screen”转...

...onst实现函数重载,定义两套函数,分别作为const成员函数非const成员函数。 代码片段如下: //通过是否为const成员函数实现重载 Screen& display(std::ostream &os) {do_display(os);return *this;} const Screen& display(std::ostream &os) const ...
https://www.tsingfun.com/it/cpp/2101.html 

passing xxx as \'this\' argument of xxx discards qualifiers - C/C++ - 清泛网 - 专注C/C++及内核技术

...义这个版本,因此编译器提示错误. 解决方法就是将getIdgetName方法声明为const成员,即在函数末尾加上const关键字。 const 常量成员
https://www.tsingfun.com/it/cpp/2106.html 

error C2280: \'std::mutex::mutex(const std::mutex &)\' : attempting to...

... 解决方法: 将包含std::mutex的类的拷贝构造函数赋值操作符重载函数,自定义或者标记为delete. 例如: class Account { public: Account(int id_, double ba = 0.0) :id(id_), balance(ba){} void withdraw(double amount){ balance -= amount; } ...
https://www.tsingfun.com/it/cpp/2117.html 

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

...areDC(CDC* pDC, CPrintInfo* pInfo) { // TODO: 在此添加专用代码/或调用基类 m_nMapMode = MM_TEXT; CScrollView::OnPrepareDC(pDC, pInfo); } CView SetScrollSizes
https://www.tsingfun.com/it/cpp/2147.html 

GetNextDlgTabItem用法详解,回车替代Tab键切换控件焦点 - C/C++ - 清泛网 ...

...Cxxx::PreTranslateMessage(MSG* pMsg) { // TODO: 在此添加专用代码/或调用基类 UINT nKeyCode = pMsg->wParam; if (pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN) { CWnd *wnd = GetFocus(); if (wnd != NULL) { char str[256]; CString ClassName = _T("Button...