在MFC中,基于对话框生成一个程序之后
我在CAboutDlg中添加了一个Static Text控件,命名为IDC_STATIC_COPY然后我在构造函数中添加
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
SetDlgItemText(IDC_STATIC_COPY, _T("change control value when running."));
}希望看到的结果是:
点击About时,弹出的关于对话框能够 在这个Static Text控件中显示“change control value when running.”
但是,程序报错,退出了。如何解决呢?