"Robert Shearman" R.J.Shearman@warwick.ac.uk wrote:
if (!(dlgInfo = HeapAlloc( GetProcessHeap(), 0,
sizeof(*dlgInfo) ))) return 0;
Minor point, but you probably want to return -1 here to say that window creation failed.
Good catch. Another one might be that WM_CREATE must be always passed to DEFDLG_Proc regardless of what result an application returned to DefDlgProc16/A/W.