try it out.
CEdit *e;
e=(CEdit*)GetDlgItem(IDC_SEARCHTEXT);
e->SetSel(-1,m_SEARCHTEXT.GetLength(),FALSE);
//IDC_SEARCHTEXT => id of the edit control
//m_SEARCHTEXT => CString variable of IDC_SEARCHTEXT
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: deselecting text..Threaded View
|
Click Here to Expand Forum to Full Width |