1.修改静态框ID
2.修改了静态框的style为Notifyvoid CMyDlg::OnNumber1()   //CMyDlg从CDialog派生的 OnNumber1()为静态框的事件
{
// TODO: Add your control notification handler code here
CString tstr;
MessageBox("静态框",NULL,NULL);
if(GetDlgItemText(IDC_NUMBER1,tstr),tstr=="NUMBER1")
{
tstr="数字1";
GetDlgItemText(IDC_NUMBER1,tstr);
}
}void CICONView::OnAbouttest()    //Abouttest为菜单项的事件
{
// TODO: Add your command handler code here
CDialog dlg(IDD_DIALOG1,GetParent());
dlg.DoModal();
}
为何程序运行的时候,鼠标双击静态框没反应?