Origin Ver. 8.1 and Service Release 2 Operating System: Windows XP
Pressing the keyboard’s enter button by accident will close Visual-C++ dialogs (seems to fire ON_OK event).
Can you reproduce this behavior? What’s the easiest way to get rid of this behavior? It should work for modal and unmodal dialogs.
Remark: Disabling of VC++’s default button option did not help. Besides, I noticed that when entering an edit field the focus is set on the OK button (IDOK resource ID) automatically.
I've had this problem as well .. My solution is to create a new button control and set it as the default. One can then make this button invisible and set its event handler to a dummy that does nothing ....