MFC中将CEdit设置光标当前位置在编辑框最后

CString strInfo;
m_Edit.GetWindowText(strInfo);
int nLength = strInfo.GetLength();
m_Edit.SetSel(nLength,nLength, FALSE);
m_Edit.SetFocus();

你可能感兴趣的:(MFC)