I created a dialog box where the class is derived from CFormView, and the first control is a button. When this dialog box comes up, the button had the focus. The problem is when I hit "enter" nothing happens until I go to the next field, hit "shift+tab" to go back to the button, and then hit enter. It appears that there is a bug in Microsoft where it does not set the button properly to the "default button" if it is the first control in the view. Why is that and how should one program around that?