Simple descriptions of the DLG, app, Doc, and view classes in MFC

Source: Internet
Author: User

 

DLGIs the abbreviation of dialog, indicating the dialog box itself

 

AppClass is the SDI"ProgramThe entry is a bit like the main function of C, which is not derived from cwnd. APP indicates the application itself.

 

ViewDisplays data and provides the ability to edit and modify data. It refers to the content in the editing area that is the white middle area, which is responsible for drawing and responding to some messages.

 

DocIndicates the document class, which stores and loads data. It is a bit like a database, which stores and edits data, used for redraw of view, and saves files.

 

Generally, dynamic editing data is stored in the doc. It is not derived from cwnd. It does not inherit the MessageBox function. You can use the afxmessagebox function.

 

 

 

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.