Your default button should be a DEFPUSHBUTTON and you should have IsDialogMessage in your message loop. If you meet these two conditions, and the currently focused control does not use the enter key press, the dialog manager will "click" your default button when enter is pressed.