(4条消息) CEdit 光标设置
CEdit 设置光标当前位置在编辑框最后
在OnInitDialog中设置,返回值应为FALSE
方法1.
m_Edit.SendMessage(WM_KEYDOWN, VK_END, 0);
m_Edit.SetFocus();
方法2.
CString strInfo;
m_Edit.GetWindowText(strInfo);
int nLength = strInfo.GetLength();
m_Edit.SetSel(nLength,nLength, FALSE);
m_Edit.SetFocus();
赞 (0)