当前位置:网站首页>Welcome to use CSDN - markdown editor
Welcome to use CSDN - markdown editor
2022-08-09 16:17:00 【Nicolas0311】
1 How to get CWnd pointer through HWND
// Get the handle of the current windowHWND hWnd = GetSafeHwnd();// Get CWnd pointer through HWNDCWnd* pWnd = CWnd::FromHandle(hWnd);CString strText = _T("");strText.Format("pWnd=0x%X\nthis=0x%X\n", pWnd, this);AfxMessageBox(strText);
2 How to get the pointer of the main window of the application
// get application pointerCDemoApp* pApp = (CDemoApp*)AfxGetApp();// Get the main window pointerCWnd* pMainWnd = pApp->m_pMainWnd;CString strText = _T("");strText.Format("pMainWnd=0x%X\nthis=0x%X\n", pMainWnd, this);AfxMessageBox(strText);
4 How to maximize, minimize and restore windows
边栏推荐
- How to List < Map> grouping numerical merge sort
- [Mysql]--事务、事务的隔离级别、脏读、不可重复读、幻读解析
- docker安装单机版redis、集群版redis
- FilenameFilter filters filenames
- How to achieve long-term benefits through the Tongdaxin quantitative trading interface?
- Shell programming loop statement
- 写在光学之前--振动和波
- 数字图像处理的基本原理和常用方法
- Stock trading stylized how to understand their own trading system?
- 注解与反射
猜你喜欢
随机推荐
如何将List<Map>进行分组数值计算合并排序
【C语言初阶】详解分支语句
方法学习笔记
深刻地认识到,编译器会导致编译结果的不同
常见的数学物理方程
How to List < Map> grouping numerical merge sort
Mathematica 数据分析(简明)
How to make your quantitative trading system have probabilistic advantages and positive return expectations?
Database multi-table link query method
A Preliminary Study on Baidu Open Source e-chart
[Basic version] Integer addition, subtraction, multiplication and division calculator
如何灵活运用量化交易接口的优势取长补短?
Shell programming loop statement
pytorch从零搭建神经网络实现多分类(训练自己的数据集)
C#轻量级ORM使用 Dapper+Contrib
6大论坛,30+技术干货议题,2022首届阿里巴巴开源开放周来了!
多线程学习
OpenCV简介与搭建使用环境
运算符学习
C语言运算符优先级