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

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

MFC 修改对话框图标 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 修改对话框图标在对应对话框的初始化函数OnInitDialog()中,添加以下代码:HICON m_hIcon;m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); 主框架的...在对应对话框的初始化函数OnInitDialog()中,添加以下代码: HICON m_hIcon; m_hIcon = AfxGetApp()->...
https://www.tsingfun.com/it/cpp/1550.html 

MFC判断窗口是否最小化、最大化 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC判断窗口是否最小化、最大化最小化判断方法:如果是判断本窗口的话:if (IsIconic()){ 最小化时的处理逻辑}如果是判断别的窗口的话:if (xxxDlg->IsIconic(...最小化判断方法: 如果是判断本窗口的话: if (IsIconic()) { //...
https://www.tsingfun.com/it/cpp/1558.html 

MFC 设置控件字体,颜色,大小,粗体,下划线等 - C/C++ - 清泛网 - 专注C/...

MFC 设置控件字体,颜色,大小,粗体,下划线等参考代码:CFont *f = new CFont; f->CreateFont(16, nHeight 0, nWidth ...参考代码: CFont *f = new CFont; f->CreateFont(16, // nHeight 0, // nWidth 0, // nEsca...
https://www.tsingfun.com/it/cpp/1563.html 

mfc spin control 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

mfc spin control 用法BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg)END_MESSAGE_MAP().h:a...BEGIN_MESSAGE_MAP(CxxDlg, CDialogEx) ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_CHG, &CxxDlg::OnDeltaposSpinChg) END_MESSAGE_MAP() .h:afx_msg v...
https://www.tsingfun.com/it/cpp/1564.html 

MFC如何实现Spin控件和Edit控件合用,实现Edit控件中数字的增减 - C/C++ - ...

MFC如何实现Spin控件和Edit控件合用,实现Edit控件中数字的增减菜单-Format- Tab Order(快捷键:Ctrl + D)依次点各个控件,设置TabOrder,要求Edit应该在Spin前面并且相邻Spin属性中设置Alignment:...菜单-Format- Tab Order(快捷键:Ctrl + D) 依...
https://www.tsingfun.com/it/cpp/1566.html 

MFC MDI程序, 多个子窗体之间切换时触发什么事件(消息)? - C/C++ - 清泛网...

MFC MDI程序, 多个子窗体之间切换时触发什么事件(消息)?WM_MDIACTIVATE消息代码:afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);消息注册:ON_WM_MDIACTIVATE()切换Tab即可触发断点:WM_MDIACTIVATE消息 代码:afx_msg void OnMD...
https://www.tsingfun.com/it/cpp/1574.html 

MFC 多线程编程简单实例 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC 多线程编程简单实例简单的例子:#include "stdafx.h"#include <windows.h>DWORD WINAPI ThreadProc(LPVOID lpParam){ printf("ThreadProc...简单的例子: #include "stdafx.h" #include <windows.h> DWORD WINAPI ThreadProc(LPVOID lpParam) { printf("ThreadProc\n"); ...
https://www.tsingfun.com/it/cpp/1580.html 

MFC窗口设置TopMost置顶的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

MFC窗口设置TopMost置顶的几种方法方法一:网上常见的pDlg->SetWindowPos(&CWnd::wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);或pDlg->SetWindowPos(pDlg->GetStyle() & WS...方法一:网上常见的 pDlg->SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); 或 pDlg-...
https://www.tsingfun.com/it/cpp/1589.html 

解决:调MFC dll时发生AfxGetInstanceHandle()断言错误 - C/C++ - 清泛网 -...

解决:调MFC dll时发生AfxGetInstanceHandle()断言错误调用HINSTANCE hInst = AfxGetInstanceHandle();程序在ASSERT(afxCurrentInstanceHandle != NULL);崩溃说明:这个函数使你能够获得当... 调用HINSTANCE hInst = AfxGetInstanceHandle(); 程序在ASSERT(afxCurrentInstanceHand...
https://www.tsingfun.com/it/cpp/1590.html 

MFC采用双缓存解决闪屏问题(使用了双缓存还是闪屏的) - C/C++ - 清泛网 - ...

MFC采用双缓存解决闪屏问题(使用了双缓存还是闪屏的)1.为什么出现闪屏?xxxxx2.没有效果?BEGIN_MESSAGE_MAP(Cxxxx, CStatic) ON_WM_ERASEBKGND()END_MESSAGE_MAP()BOOL Cxxxx::OnErase...1.为什么出现闪屏? xxxxx 2.没有效果? BEGIN_MESSAGE_MAP(Cxxxx, CSt...