If you are setting the default focus to another control in dialog, then OnInitDialog() should return FALSE.