16,467
社区成员
发帖
与我相关
我的任务
分享
CEdit m_edt;
CStatic m_lab;
CString str;
m_edt.GetWindowText(str);
m_lab.SetWindowText(str);
CString str;
GetDlgItemText(IDC_EDIT1, str); //edit box的ID
SetDlgItemText(IDC_STATIC1, str); //static text的ID,不能用默认的,要自己改过