void CMyDlg::OnButton1()
{
// TODO: Add your control notification handler code here
GetDlgItem(IDC_BUTTON2)->SendMessage(WM_COMMAND,MAKEWPARAM(BN_CLICKED,IDC_BUTTON2),0);
}void CMyDlg::OnButton2()
{
// TODO: Add your control notification handler code here
MessageBox("2");
}
{
// TODO: Add your control notification handler code here
GetDlgItem(IDC_BUTTON2)->SendMessage(WM_COMMAND,MAKEWPARAM(BN_CLICKED,IDC_BUTTON2),0);
}void CMyDlg::OnButton2()
{
// TODO: Add your control notification handler code here
MessageBox("2");
}
void CMyDlg::OnButton1()
{
// TODO: Add your control notification handler code here
::SendMessage(m_hWnd,WM_COMMAND,MAKEWPARAM(IDC_BUTTON2,BN_CLICKED),0);
}void CMyDlg::OnButton2()
{
// TODO: Add your control notification handler code here
MessageBox("2");
}