PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Don Dickinson on June 08, 2004, 07:19:39 PM

Title: how to do something after all controls are created
Post by: Don Dickinson on June 08, 2004, 07:19:39 PM
does anyone know where to put code that i need executed exactly one time after all of the controls in a window are created? i don't think its safe to put in the WM_CREATE of the form (is it?) as i don't know if all the children are created at this point.

tia,
don
Title: how to do something after all controls are created
Post by: Roger Garstang on June 08, 2004, 07:27:26 PM
If you look in the generated code the call to [formname]_CreateControls(hWndForm) comes right before FF_nResult = [formname]_WM_CREATE (hWndForm)

sounds safe to me...
Title: thanks
Post by: Don Dickinson on June 08, 2004, 07:53:21 PM
thanks! duh, i should have just looked at the source.
i appreciate the help.
--don