In iczs tut #10, a dialog is created with using a window class and the dialog uses the class. My problem is that when you create a dialog like this, the wm_initdialog msg is never sent. And when the wm_create msg is sent, the dialog controls havent been created yet so i cant send any messages to the controls to initialize them. My qusestion is, what msg am i supposed to use to initalize the dialog controls?
Posted on 2002-07-31 22:55:33 by ChimpFace9000
What about reading the Tutorial? :rolleyes:

After the dialog box is created, I want to set the input focus to the edit control. If I put these
codes in WM_CREATE section, GetDlgItem call will fail since at that time, the child window
controls are not created yet. The only way you can do this is to call it after the dialog box
and all its child window controls are created. So I put these two lines after the UpdateWindow
call. GetDlgItem function gets the control ID and returns the associated control's window handle.
This is how you can get a window handle if you know its control ID.

Just put your init code after UpdateWindow.
Posted on 2002-08-01 01:05:15 by bazik