Introduction to common methods for development using MFC

Source: Internet
Author: User

 

1. Develop applications that need to read and write files, and use the single-document view structure for simple input and output.

2. To develop a simple interactive application, you can use a dialog box-based window. CFile can be used for simple file read/write.

3. Develop simple applications that focus on interaction and complex file reading and writing. The single-document view structure based on CFormView can be used.

4. Use the dialog box to obtain user input data. After the level is increased, you can use local input.

5. Avoid the multi-document view structure as much as possible when there are no strong requirements for multiple documents. You can use separators to generate a single-document multi-view structure.

6. Use the multi-document view structure when data is transferred between multiple documents.

7. Learn to use subwindows and include multiple controls in the Custom subwindows to encapsulate the functions.

8. Avoid using multi-document and multi-view structures whenever possible.

9. Do not use multi-inheritance and minimize the number of features encapsulated in a class.

 

Related Article

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.