I'm developing a MFC wizard base application. When the application load, it automatically focus to thecancel button. If the user press enter key, then the application exit unexpectedly. Then I set the focus to a text box appear in the inner dialog using cedit.setFocus(). but when I type using keyboard it focus the text field, but If I press enter still focus to cancel button.
In simply is there anyway to set and kill focus of the MFC wizard buttons