Dmitry Timoshkov : user32: Windows doesn' t send the initialization messages to a dialog if a passed in dlgProc is NULL .