edit box highlighting

This should be a simple question.  I have a form with edit boxes.  When Ok is clicked.  I check the validity of the data in the boxes and if there is a problem, I set the focus to the problem box.  How do I have the box act like it has been double clicked?  (highlighted and ready to have the data replaced when typing begins)
greggaAsked:
Who is Participating?
 
SteveGTRConnect With a Mentor Commented:
((CEdit*) GetDlgItem(IDC_EDIT))->SetSel(0, -1);

Good Luck,
Steve
0
 
greggaAuthor Commented:
Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.