Win32 Edit Control: setting focus

Started by
1 comment, last by flyorfall 15 years, 9 months ago
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.
Advertisement
As per the Documentation, are you returning FALSE from WM_INITDIALOG to prevent Windows from setting the focus item itself?
It worked! Sorry, I was not so careful reading the MSDN...

Thank you very much!!!

This topic is closed to new replies.

Advertisement