MFC application : let‘s learn from the start

1.How to create a sample application?

  1. please read this article and create a sample application like this:

Visual Studio 2019 创建MFC项目并运行_vs2019创建mfc项目-CSDN博客

(1)first, we need a framework.h to include the necessary file from MFC library

(2)pch.h and pch.cpp : just to include some file and complie more efficiently

(3)targetver.h : to include necessary file for different version

(4)resource.h define some macro for the MFCApplication1.cpp to use

and the following two file are the main files actually:

--MFCApplication1Dlg.cpp:

This file primarily implements the functionality for the main dialog of the MFC application, including initialization, message handling, and painting.

It helps draw the main GUI and menu of this application

--MFCApplication1.cpp:

Overall, this file sets up the application class, initializes the application, creates the main dialog, and handles the dialog's response. It contains essential initialization and cleanup code for the MFC application.

It defines the operations of this class and it's the main file of this application

and the sample show as below

2.if you want to learn the whole details about the MFC application, please read :

MFC 桌面应用程序 | Microsoft Learn

3.if you want to learn from the video:

(1)this can make you a quick start , and remember code by yourself to improve

黑马程序员MFC教程(已完结)_哔哩哔哩_bilibili

(2)Hopefully, I will go through the whole videos above and create my own MFC application by coding myself. Then I will write some articles to share with you as soon as possible.

相关推荐
郝学胜_神的一滴1 分钟前
Qt 高级开发 030:QListWidget 右键菜单全解,从策略配置到精准删除的优雅实现
c++·qt
攻城狮Soar1 小时前
STL源码解析之list(1)
开发语言·c++
2401_869769591 小时前
内容5 日期类实现
开发语言·c++
xxwl5851 小时前
一个原创题(二)
c++·算法
MZZ骏马2 小时前
C++ 极简模式的日志
c++
AbandonForce2 小时前
滑动窗口:定长滑动窗口与不定长滑动窗口
数据结构·c++·算法
小欣加油2 小时前
leetcode3689最大子数组总值I
c++·算法·leetcode·职场和发展·贪心算法
有点。3 小时前
C++(贪心算法二)
开发语言·c++·贪心算法
有点。3 小时前
C++贪心算法一(练习题)
开发语言·c++·贪心算法
Coder-magician3 小时前
《代码随想录》刷题打卡day12:二叉树part02
数据结构·c++·算法