当前位置:网站首页>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);
}
边栏推荐
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
- PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
- Introduction to the easy copy module
- LeetCode #461 汉明距离
- Julia 1.6 1.7 common problem solving
- 学习问题1:127.0.0.1拒绝了我们的访问
- Record a problem of raspberry pie DNS resolution failure
- Use dapr to shorten software development cycle and improve production efficiency
- QT creator design user interface
- AI benchmark V5 ranking
猜你喜欢
Pytorch基础
Basic use of redis
LeetCode #461 汉明距离
Django running error: error loading mysqldb module solution
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
[recommended by bloggers] background management system of SSM framework (with source code)
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes
QT creator specify editor settings
[recommended by bloggers] C WinForm regularly sends email (with source code)
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
随机推荐
Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
[number theory] divisor
AI benchmark V5 ranking
ES6 let 和 const 命令
Ansible实战系列一 _ 入门
Django running error: error loading mysqldb module solution
人脸识别 face_recognition
软件测试与质量学习笔记3--白盒测试
LeetCode #461 汉明距离
What does BSP mean
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
vs2019 使用向导生成一个MFC应用程序
Swagger, Yapi interface management service_ SE
Record a problem of raspberry pie DNS resolution failure
Rhcsa certification exam exercise (configured on the first host)
Test objects involved in safety test
QT creator specify editor settings
MySQL与c语言连接(vs2019版)
One click extraction of tables in PDF
[recommended by bloggers] asp Net WebService background data API JSON (with source code)