Win32 Edit Control: setting focus
Hi. This is a stupid topic, but not for a Win32 novice...
I have a very simple dialog, with just a label, an edit box and two buttons (OK, Cancel).
I expect the edit box to get the focus at the end of the WM_INITDIALOG, but this doesn't happen, even if I call a SetFocus on the edit control.
Can anyone help me?
Thanks a lot.
As per the Documentation, are you returning FALSE from WM_INITDIALOG to prevent Windows from setting the focus item itself?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement