SetFocus(GetDlgItem(dpwpHWND, RESOURCE_ID_OF_EDIT_CONTROL));
in the WM_ACTIVATE message of the dialog's wndproc, but it didn't work.
any suggestions? thanks!
[edited by - krez on December 16, 2003 10:36:08 AM]
setting focus to EDIT control in a dialog
i create a dialog with a few EDIT controls (in a resource script), and want to set the focus to the first EDIT control. currently, the OK button (default button) has focus.
i tried:
Call SetFocus in WM_INITDIALOG AND return FALSE.
If you return TRUE windows will set the focus to the default control.
If you return TRUE windows will set the focus to the default control.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement