阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/31 00:33:02
![阅读下面的程序段,指出各语句的作用及函数的功能.void CEx_DlgCtrlsDlg::OnButton1() {\x05// TODO:Add your control notification handler code here\x05UpdateData();\x05MessageBox(m_strEdit);\x05m_RelBtn.SetWindowText(m_strEdit);}其中](/uploads/image/z/10753184-56-4.jpg?t=%E9%98%85%E8%AF%BB%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%A8%8B%E5%BA%8F%E6%AE%B5%2C%E6%8C%87%E5%87%BA%E5%90%84%E8%AF%AD%E5%8F%A5%E7%9A%84%E4%BD%9C%E7%94%A8%E5%8F%8A%E5%87%BD%E6%95%B0%E7%9A%84%E5%8A%9F%E8%83%BD.void+CEx_DlgCtrlsDlg%3A%3AOnButton1%28%29+%7B%5Cx05%2F%2F+TODO%3AAdd+your+control+notification+handler+code+here%5Cx05UpdateData%28%29%3B%5Cx05MessageBox%28m_strEdit%29%3B%5Cx05m_RelBtn.SetWindowText%28m_strEdit%29%3B%7D%E5%85%B6%E4%B8%AD)
阅读下面的程序段,指出各语句的作用及函数的功能.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);//并且把这个结果以参数的形式传送到另外一个方法中去.
}