SDK and MFC note points

Source: Internet
Author: User
Some points of note in the SDK
1.1
///////////////////////////////////////////////////////
Some points of attention in MFC
1. The control can respond to the event itself (the Lightning flag in the point attribute). To set notify to Ture in the control properties edit box. (but still in the parent window if you want to generate the class in your own window, then use the Class Wizard to specify that the class implements the corresponding message event)
2. When adding a response event to the parent window, select the correct window and item such as: Set the time response event.
Grouping in 3.MFC is done by looking at which control's group property is set to Ture when this control is set to Ture, all the same controls behind him are grouped. (Until there is another one for ture) is managed by the control set to Ture. (The order is the order of the TAB key.) Can be viewed with Ctrl +d).

  1. It is important to note whether a resource is added or bound in a macro. Also, if you delete a control in the edit box, remember to delete the error in the bound macro as well.
  2. The picture control only supports BMP format while the ID is changed because the default generated ID is in the project. is the icon. There are also types of type bitbmp to be set as picture properties to add.
  3. list controls have different styles. Let's see what the style is. By changing the view type. If you want to add a picture before each column. is to first save the diagram with an array, then add the association, and then set each.
  4. The parent of the subclass in Tabcontrl, but cannot be added in the Add Class Wizard, such as:

    But then there is no binding subclass ID to add the variable (the type is the class name, because the other subclasses inherit from you) the ID appears.

SDK and MFC note points

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.