[comp.windows.ms.programmer] WM_INITDIALOG, lack of

gjh@ecs.soton.ac.uk (Gary Hill) (02/09/91)

In <1176@dcl-vitus.comp.lancs.ac.uk> alan@comp.lancs.ac.uk (Alan Phillips) writes:

>Simple question: I'm using CreateDialog to set up the main (only) window
>of a program, having set up the dialog box with a subclass using the
>Whitewater Toolkit. I need to do various things like fill list boxes
>to start things off, so I put in code to handle WM_INITDIALOG. But -
>I never get the message. Does this message get sent only to dialog boxes that
>use the standard dialog proc? How else can I do initialisation stuff? (currently
>I send a private message to the window after CreateDialog comes back).

If I remember correctly, without checking my own code, if you create a
ne class for a dialog box, you don't get a WM_INITDIALOG, but you do
get a WM_CREATE message.

Hope this helps.

Gary Hill, gjh@uk.ac.soton.ecs