阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 09:23:29
阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中

阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中
阅读下面的程序段,指出各语句的作用及函数的功能.
void CEx_DlgCtrlsDlg::OnButton1()
{
\x05// TODO:Add your control notification handler code here
\x05UpdateData();
\x05MessageBox(m_strEdit);
\x05m_RelBtn.SetWindowText(m_strEdit);
}
其中m_strEdit在CEx_DlgCtrlsDlg中定义为:CString\x05m_strEdit; 用于对话框中的编辑框控件(ID为IDC_EDIT1)与成员变量的数据交换.

阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中
你的这段代码全是引用,我只能从字面来解释一下了
void CEx_DlgCtrlsDlg::OnButton1() //一个按钮的触发事件
{
\x05// TODO:Add your control notification handler code here//系统自动生成代码
\x05UpdateData();//更新数据的一个方法,在此调用
\x05MessageBox(m_strEdit);//利用弹出框的方式显示上面的那个方法是个成功
\x05m_RelBtn.SetWindowText(m_strEdit);//并且把这个结果以参数的形式传送到另外一个方法中去.
}