July 17, 2024, 08:42:57 PM


IWBasic runs in Windows 11!

setfocus question

Started by Haim, April 14, 2009, 12:32:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


This is probably a stupid question but I am unable to resolve it  :-[

How can I display a modal dialog, with focus set to a specific edit control on it.

usiing Getcontrol(ID_EDIT1)->setfocus(); from the dialog's OnInitDialog() method does not work.
I guess focus is moved to the dialog itself

Any idea?


Issue resolved.
Just my stupid mistake
Sorry to have bothered you all.