"Reprint" note Afx_msg_map,afx_data,afx_data_map, afx_msg and other macros cannot be deleted

Source: Internet
Author: User

Original:

Begin_message_map (Cmy1dlg, CDialog)
//{{afx_msg_map (CMY1DLG)
On_wm_syscommand ()
On_wm_paint ()
On_wm_querydragicon ()
On_bn_clicked (Idc_button1, OnButton1)
//}} Afx_msg_map
End_message_map ()

Afx_msg_map, this macro is an auxiliary macro used by MFC to construct a message map table, buried in a class-aware macro or dynamic recognition macro

Begin_message_map (Cmy3view, CFormView)
//{{afx_msg_map (Cmy3view)
Note-the ClassWizard would add and remove mapping macros here.
Do not EDIT these blocks of generated code!
//}} Afx_msg_map
Standard printing commands
On_command (Id_file_print, Cformview::onfileprint)
On_command (Id_file_print_direct, Cformview::onfileprint)
On_command (Id_file_print_preview, Cformview::onfileprintpreview)
End_message_map ()

{{Afx_data (CMY4DLG)
enum {IDD = Idd_my4_dialog};
Note:the ClassWizard would add data members here
}}afx_data

Public
//{{afx_data (Cmy3view)
enum{IDD = Idd_my3_form};
Note:the ClassWizard would add data members here
//}} Afx_data

{{Afx_data_map mapping between component data and components

afx_msg

found that macros such as annotations Afx_msg_map and afx_data cannot be deleted, either in dialog-based or sdi,mdi, otherwise errors such as cannot add new member will appear, or double-click controls cannot enter event handling. Compiler required! (in VC6, VC2010 Wood has these)

"Reprint" note Afx_msg_map,afx_data,afx_data_map, afx_msg and other macros cannot be deleted

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.