Handling dialog messages for non-template based dialogs
Dmitry Timoshkov
dmitry at baikal.ru
Tue Apr 13 07:15:47 CDT 2004
"Robert Shearman" <R.J.Shearman at 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.
More information about the wine-devel
mailing list