//CEdit
CString s;
CWnd *pItem=GetDlgItem(IDC_STATIC);
m_Edit1.GetWindowText(s);
m_Edit2.SetWindowText(s);
s.Format("字符串长度:%d",m_Edit1.GetWindowTextLength());
pItem->SetWindowText(s);

相关文章: