不明白BEGIN_MESSAGE_MAP
比如这一段
BEGIN_MESSAGE_MAP(CSrvMonitorDlg, CDialog)
//{{AFX_MSG_MAP(CSrvMonitorDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_WM_TIMER()
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CSrvMonitorDlg是宏,所以CSrvMonitorDlg类名不能传递给下面的宏ON_BN_CLICKED
那ON_BN_CLICKED中怎么知道是那一个类的OnButton1?
谁能详细说说?