当前位置:网站首页>Vs2019 use wizard to generate an MFC Application
Vs2019 use wizard to generate an MFC Application
2022-07-06 11:24:00 【imxlw00】
Create project
choice mfc Templates
Configuration items
function
Class view
Double click the class name to jump to the class declaration .h file
The following is the member function in the class , Double click to jump to the corresponding definition section
Addition of message processing
stay CMainFrame Add message processing , The program didn't respond , Need to be in view Layer operates the above process .
Find... In the message list WM_LBUTTONDOWN news , add to .
Add several changes to the engineering documents .
First of all : Add the function declaration of the left mouse button message function in the framework class header file
The second place : In the framework class cpp The message mapping macro... Is added to the file
The third place : In the frame column cpp The function definition for processing the left mouse button message is added to the file
void CMFCTestView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add message handler code and / Or call the default value
CView::OnLButtonDown(nFlags, point);
CString str;
str.Format(TEXT("x=%d , y=%d "), point.x, point.y);
MessageBox(str);
}
边栏推荐
- Tcp/ip protocol (UDP)
- DICOM: Overview
- 连接MySQL数据库出现错误:2059 - authentication plugin ‘caching_sha2_password‘的解决方法
- Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
- In the era of DFI dividends, can TGP become a new benchmark for future DFI?
- Solution: log4j:warn please initialize the log4j system properly
- 记一次某公司面试题:合并有序数组
- Rhcsa certification exam exercise (configured on the first host)
- One click extraction of tables in PDF
- TCP/IP协议(UDP)
猜你喜欢
Asp access Shaoxing tourism graduation design website
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
LeetCode #461 汉明距离
Data dictionary in C #
学习问题1:127.0.0.1拒绝了我们的访问
Django运行报错:Error loading MySQLdb module解决方法
MySQL与c语言连接(vs2019版)
Neo4j installation tutorial
Software testing and quality learning notes 3 -- white box testing
保姆级出题教程
随机推荐
QT creator test
Record a problem of raspberry pie DNS resolution failure
一键提取pdf中的表格
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
What does usart1 mean
Swagger、Yapi接口管理服务_SE
L2-007 家庭房产 (25 分)
Django运行报错:Error loading MySQLdb module解决方法
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
Database advanced learning notes -- SQL statement
[recommended by bloggers] background management system of SSM framework (with source code)
How to set up voice recognition on the computer with shortcut keys
Why can't STM32 download the program
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
QT creator custom build process
Ansible practical Series III_ Task common commands
Rhcsa certification exam exercise (configured on the first host)
How to build a new project for keil5mdk (with super detailed drawings)
[recommended by bloggers] C # generate a good-looking QR code (with source code)