[comp.windows.ms] Private Window class for a dialog box

gjh87@ecs.soton.ac.uk (08/21/90)

This is a plea for help!! I am trying to subclass a modeless dialog box 
with a private window class in the aim of giving an icon when minimising 
the dialog box.  Everything compiles, and the Window function for the dialog
box is called with a WM_NCCREATE message but crashes with an Unrecoverable
Application Error when executing the DefDlgProc function. Does anyone have 
any suggestions as I am fresh out of ideas.

I have checked the obvious possibilities 
   - the Dialog function is exported
   - the dialog template has the correct CLASS line
   - hInst and hWnd parameters to CreateDialog are initialised

If noone has any guesses as to the problem, is there another way in
which I can give the dialog box an icon ?

Thanks in advance,

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

gjh87@ecs.soton.ac.uk (Gary Hill) (08/22/90)

In <548.9008211504@hilliard.ecs.soton.ac.uk> gjh87@ecs.soton.ac.uk writes:


[plea for help deleted]

OK, ignore the previous message, I've fixed the problem.
For anyone whose interested, the cbWndExtra field in the
WNDCLASS structure should be set to DLGWINDOWEXTRA for window classes
designed for dialog boxes.

Sorry if I wasted anyones time.

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