hum, it seems that what you need have been answered several ways, but at a low level... did you try CWnd::GetDefID() ? by using this function, the window the button is on will change its default button (it will remove the property from the last one to set it to the button you provide then). this way, you'll be able to press the "enter" key to use you button.
TOXCCT >>> GEII power
[toxcct][VisualCalc]