Try this: http://support.microsoft.com/kb/122489. How to Disable Default Pushbutton Handling for MFC Dialog.
stackoverflow.com