Dmitry Timoshkov : user32: If there is no dialog controls to set focus to then set focus to dialog itself.