When we use CreateDialogParam to make a main window dialog, it isn't really necessary to return TRUE or FALSE to the dialog box procedure. We can just call DefWindowProc to do its job. Is it?

Thanks
Posted on 2004-06-21 19:07:44 by Marginais
You should return TRUE or FALSE (and sometimes use SetWindowLong to return other values, like brush handles) - the dialog handling code of windows handles a few messages by itself, and ends up calling DefWindowProc.
Posted on 2004-06-21 19:33:04 by f0dder