13 Apr
2004
13 Apr
'04
12:15 p.m.
"Robert Shearman" <R.J.Shearman(a)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. -- Dmitry.