I have a dialog box in an MFC app, and I want a certain edit control to have focus as soon as the box is created. I have tried hooking various messages to the dialog box, but none of them seem to occur at the appropriate time.
What is the best way to do this?