I’m creating a dialogbox with a picture control and whenever I initialize the dialog it sets the focus to that picture control, is there any way to give dialog the default without resetting the focus from picture control?
I’m creating a dialogbox with a picture control and whenever I initialize the dialog
Share
When you get the
WM_INITIDIALOGmessage in your dialog procecure, if you return FALSE then it will not set the focus to one of the controls in the dialog.from http://msdn.microsoft.com/en-us/library/ms645428(VS.85).aspx
Normally, what you would do is set the focus to whichever control you choose in
WM_INITDIALOGand then return FALSE to prevent windows from changing the focus.