Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
additive
Posted - 09/01/2010 : 11:15:06 AM 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.
Any idea is appreciated!
/ Michael
2 L A T E S T R E P L I E S (Newest First)
additive
Posted - 09/02/2010 : 10:43:09 AM Wow! Sounds great! I will try it later. Thank you so much!
Michael
rlewis
Posted - 09/02/2010 : 04:43:12 AM 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 ....