当前位置:网站首页>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);
}

边栏推荐
- L2-006 树的遍历 (25 分)
- QT creator shape
- Heating data in data lake?
- Test objects involved in safety test
- Use dapr to shorten software development cycle and improve production efficiency
- [Thesis Writing] how to write function description of jsp online examination system
- Database advanced learning notes -- SQL statement
- Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
- AcWing 179. Factorial decomposition problem solution
- Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.
猜你喜欢

In the era of DFI dividends, can TGP become a new benchmark for future DFI?

QT creator support platform

图片上色项目 —— Deoldify

Django运行报错:Error loading MySQLdb module解决方法

AcWing 1298.曹冲养猪 题解

Asp access Shaoxing tourism graduation design website

Pytorch基础

Install mongdb tutorial and redis tutorial under Windows
![[蓝桥杯2017初赛]方格分割](/img/e9/e49556d0867840148a60ff4906f78e.png)
[蓝桥杯2017初赛]方格分割

How to configure flymcu (STM32 serial port download software) is shown in super detail
随机推荐
Remember the interview algorithm of a company: find the number of times a number appears in an ordered array
天梯赛练习集题解LV1(all)
安装numpy问题总结
AcWing 1294.樱花 题解
L2-001 紧急救援 (25 分)
LeetCode #461 汉明距离
L2-006 树的遍历 (25 分)
How to set up voice recognition on the computer with shortcut keys
數據庫高級學習筆記--SQL語句
JDBC原理
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application
AcWing 1298. Solution to Cao Chong's pig raising problem
MySQL master-slave replication, read-write separation
01 project demand analysis (ordering system)
Picture coloring project - deoldify
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
[蓝桥杯2020初赛] 平面切分
软件测试与质量学习笔记3--白盒测试
学习问题1:127.0.0.1拒绝了我们的访问
AcWing 179. Factorial decomposition problem solution