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

边栏推荐
- Codeforces Round #771 (Div. 2)
- Classes in C #
- Copie maître - esclave MySQL, séparation lecture - écriture
- Remember the interview algorithm of a company: find the number of times a number appears in an ordered array
- 01 project demand analysis (ordering system)
- [free setup] asp Net online course selection system design and Implementation (source code +lunwen)
- JDBC原理
- [number theory] divisor
- [Thesis Writing] how to write function description of jsp online examination system
- Did you forget to register or load this tag
猜你喜欢

QT creator specifies dependencies

图片上色项目 —— Deoldify

Use dapr to shorten software development cycle and improve production efficiency

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

Rhcsa certification exam exercise (configured on the first host)

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

QT creator runs the Valgrind tool on external applications

Swagger, Yapi interface management service_ SE
![[recommended by bloggers] C WinForm regularly sends email (with source code)](/img/5d/57f8599a4f02c569c6c3f4bcb8b739.png)
[recommended by bloggers] C WinForm regularly sends email (with source code)

Install mysql5.5 and mysql8.0 under windows at the same time
随机推荐
Aborted connection 1055898 to db:
QT creator specifies dependencies
How to build a new project for keil5mdk (with super detailed drawings)
自动机器学习框架介绍与使用(flaml、h2o)
Install mongdb tutorial and redis tutorial under Windows
Neo4j installation tutorial
Why can't I use the @test annotation after introducing JUnit
MySQL主從複制、讀寫分離
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
AcWing 1298.曹冲养猪 题解
[number theory] divisor
There are three iPhone se 2022 models in the Eurasian Economic Commission database
Database advanced learning notes -- SQL statement
Swagger, Yapi interface management service_ SE
AcWing 1298. Solution to Cao Chong's pig raising problem
Case analysis of data inconsistency caused by Pt OSC table change
项目实战-后台员工信息管理(增删改查登录与退出)
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
JDBC principle
When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page