Quote Originally Posted by Igor Vartanov View Post
Well, did you try to unset default attribute for the button?
No. I wasn't aware about this option. That worked. Thanks.

PS: I found alternative way to do:
SendMessage(hwndDlg,DM_SETDEFID,IDOK,0);
and to ensure that there is no IDOK control in the dialog box.