我曾在"afx_msg"
的声明中添加message handler function
前缀
但我发现the function
仍称为the prefix
。{。}
"afx_msg"
是否需要?
补充:
class CVLManageDlg : public CDialog
{ ...
protected:
void OnAdd();
void OnModify();
void OnDel();
}
BEGIN_MESSAGE_MAP(CVLManageDlg, CDialog)
ON_BN_CLICKED(IDC_ADD_VL_MANAGE, OnAdd)
ON_BN_CLICKED(IDC_MD_VL_MANAGE, OnModify)
ON_BN_CLICKED(IDC_DEL_VL_MANAGE, OnDel)
ON_NOTIFY(NM_CLICK, IDC_LIST_VL_MANAGE, OnClickList)
ON_WM_SIZE()
END_MESSAGE_MAP()
void CVLManageDlg::OnAdd()
{...}
void CVLManageDlg::OnModify()
{...}
void CVLManageDlg::OnDel()
{...}