setting focus to edit controls
-
Does any one know a fairly easy way to set the focus to a given edit control in a dialog box? Thx, Ralf. ralf.riedel@usm.edu
-
Does any one know a fairly easy way to set the focus to a given edit control in a dialog box? Thx, Ralf. ralf.riedel@usm.edu
GetDlgItem(IDC_MYCONTROL)->SetFocus()
??? The word of the day is legs, let's go back to my house and spread the word ;P -
GetDlgItem(IDC_MYCONTROL)->SetFocus()
??? The word of the day is legs, let's go back to my house and spread the word ;PThat's it. Thanks. ralf.riedel@usm.edu
-
That's it. Thanks. ralf.riedel@usm.edu
I also do
myEdit.SetSel (0, -1);
before setting focus to an edit control after displaying a validation error message. This prepares the control for overwriting. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com