Besides putting the default shade on the button, what does this do? I thought that it kinda handles the "Enter". For instance, if my focus is on an edit (the same window) and I type a word, and then (still with focus on the edit) I hit "Enter" the DEFPUSHBUTTON would receive the enter. How would I do this?
Have you tried ES_WANTRETURN as a style for the edit?
If that doesnt do it you could subclass the edit and filter for VK_RETURN and then discard them
Make sure you use the MULITLINE style for the edit if you want to use ES_WANTRETURN (to set RETURN!=DEF_BUTTON)