VC++ 常用控件相关操作

//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);

posted on 2005-11-11 19:36 痛并快乐着 阅读(622) 评论(0) 编辑 收藏