In MFC, we can find the following three macros:
Declare_massage_map ()
Begine_massage_map (class, bassclass)
End_massage_map ()
The following three macros are analyzed:
1 declare_message_map ()Purpose: declare required member variables and member functions for a message response class.
# Define declare_message_map ()
PRIVATE:
Static const afx_msgmap_entry _ messageentries [];
Protected:
Static const afx_msgmap messagemap;
Virtual const afx_msgmap * g
button the user chooses.Publicenum {Admin, User} m_nusertype;Now we're going to add message processing1, in the class header file added: afx_msg void Onbnclickedradio (UINT idctl);2. Add between Begin_message_map and End_message_map ()On_control_range (bn_clicked, Idc_radio_admin, Idc_radio_user, Onbnclickedradio)ON_CONTROL_RANGE This macro requires 4 parameters:1. Type of event: Click event here2. Button group's first button (identity start)3. The last button of the button group (logo end)4. F
DSN. Select MySQL ODBC Unicode driver, complete, and the following interface appears. Name the datasource in data source name; Deccription for description, not filled in, TCP/IP Sever fill in the MySQL user name, password fill in the MySQL password localhost;user. When all of the above are filled in correctly, database can have databases in MySQL database for you to choose from. Then click Test to show that successful is successful.Then go back to the User DSN interface to see your DSN.2.
The current MFC and ATL represent two frameworks for different types of windows-based development. MFC represents a simple, consistent way to create stand-alone Windows applications; ATL provides a framework for implementing boilerplate code necessary to create COM clients and servers. Both of these frameworks converge on their use for developing ActiveX. We'll look at how these two frameworks work for crea
First, IntroductionIn the previous topic, purely manual completion of a Windows application, however, in actual development, most of us use the existing class library to develop Windows applications. MFC (Microsoft Foundation Class, Microsoft Basic Class Library) is a Microsoft to simplify the development of programmers and the Windows API into the C + + class, the use of these classes, programmers can effectively complete the Windows platform under t
The Non-MFC DLLs are explained in the previous section, and this section describes how to create an MFC rule DLL and how to use the MFC rule DLLs. I. Overview of MFC Rules DLLsThe concept of the MFC rules DLL is embodied in two ways: (1) It is MFC's"is
Http://www.cnblogs.com/Alberl/p/3352696.htmlAlthough Duilib comes with the Duilib demo in MFC, it is only the case that MFC Windows and duilib windows do not overlap. If you want to embed the Duilib control in the MFC window, or embed the MFC control in the Duilib control, there is no demo can see, in fact, Alberl bega
Mini run game based on MFC design (game development, MFC explaining, threading and process communication)Course Category: Game developmentSuitable for people: BeginnerNumber of lessons: 36 HoursUse of technology: MFC involves the project: Mini run gameConsulting qq:1840215592First, Module introduction1, MFC Basic artic
In the previous article, we introduced non-mfc dll and the MFC rule DLL. Now we will analyze in detail the last type of DLL-MFC extension DLL.
Introduction 6.1
The similarities between the MFC extension DLL and the MFC rule DLL are that the
Relationship between the MFC program and the Win32 Program
MFC encapsulates winmain internal operations with relatively fixed behaviors in cwinapp, and wndproc internal operations with relatively fixed behaviors in cframewnd.
It can be said that cwinapp is used to replace winmain's position in the SDK program, and cframewnd replaces the position of window functions in the SDK program.
First, the
. From the browser side, there is no difference. Such a common processing technique is very useful. Creation of 3.ActiveX Control engineering There are two ways to create an ActiveX project using VS2010, The first: Create an "MFC ActiveX control" project; The second type: Create an ATL project. because the use of ATL to develop ActiveX controls requires knowledge of COM technologies, the requirements for programmers are high and development time is
Http://www.evget.com/articles/evget_820.html
Use resources in DLL (1)
Yuwei-reproduced (14:02:00 ). net Control Development ActiveX/COM development clx/VCL development Java component development VC/mfc control use Experience Discuss DHTML/script control development basic database programming specification unit test reusable software technical theory it
Use resources in DLL (1)The most common problem about DLL is how to use the dialog box in DLL. This
ATL is used to write COM programs, the CLR is the common language runtime of. NET, MFC refers to the MFC class Library, MFC programs are used in these class libraries to make programs, WIN32 General is not MFC, using API functions compiled by the program. MFC, ATL, and the C
Analysis of MFC message response mechanism1 IntroductionThe MFC basic class library provided by Microsoft Corporation (Microsoft Foundation Classes) is the most popular class library used for visual programming. MFC encapsulates most of the Windows API functions and Windows controls, making the development of programs simple, greatly reducing the development cycl
Four kings of MFC
For the topic of MFC, there are four books that have been discussed on the "canghai Shuxun" edition, which are listed by me as the Four Kings. It seems that the good books in my mind are quite consistent with the market reaction.
---------------------------------------------------------------I still remember that the unaccountable book reviews were the first time we met each other at the b
Reprint Link: Http://wiki.opencv.org.cn/index.php/MFC%E4%B8%AD%E5%BF%AB%E9%80%9F%E5%BA%94%E7%94%A8OpenCVIntroduction and OriginsThe original discussion topic of this tutorial, please see "Original" MFC in the rapid application of OPENCV tutorial, the purpose of this tutorial is to facilitate the majority of users under the Windows MFC user can easily in the
MFC, the Microsoft Base Class Library, encapsulates the Windows API in the form of C + + classes, providing convenience to developers, but beginners often wonder where the entry to the MFC program is. The following is a brief introduction to the MFC program entry and execution process.An analysis of MFC program executi
This paper analyzes the MFC program execution process of VC + + program design in detail, which helps to deepen the understanding of MFC program Operation principle. Share for everyone to use for reference. The specific analysis is as follows:
An analysis of MFC program execution process
1 we know that in the WIN32API program, the entrance to the program is the
Part I.: Introduction to MFC
Visual C + + is more than just a compiler. It is a comprehensive application development environment that you can use to leverage C + + with object-oriented features to develop professional-level Windows applications. In order to fully utilize these features, you must understand the C + + programming language. With C + +, you have to master the hierarchy of the Microsoft Basic Class library (
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.