16,551
社区成员
发帖
与我相关
我的任务
分享
CEdit * p=(CEdit*)GetDlgItem(IDC_EDIT1);
CString str,str1;
int is,ie;
p->SetFocus();
p->GetWindowTextA(str);
p->GetSel(is,ie);
str1 = str.Mid(is,ie-is);
str1.MakeUpper();
str= str.Mid(0,is)+str1+str.Mid(ie,str.GetLength());
p->SetWindowTextA(str);