void CTestClickDlg::OnBtnClk() { // TODO: Add your control notification handler code here MessageBox("我是被发消息达到点击效果的"); } void CTestClickDlg::OnBtnMyclk() { // TODO: Add your control notification handler code here SendMessage(WM_COMMAND,MAKEWPARAM(IDC_BTN_CLK,BN_CLICKED),0); }