|
-
July 14th, 2004, 05:31 PM
#1
Dialog closes upon <CR>
How do I get this to stop?
-
July 14th, 2004, 05:41 PM
#2
Hi wbartley,
In class wizard, override the OnOK click message. Do not call the base class.
Jeff
-
July 14th, 2004, 05:44 PM
#3
Don't make your OK (or cancel) button the default button.
In VS 7.1; open the dialog in the resource editor, and bring up the properties on the OK button. Make sure the "Default Button" property is "False". Do the same for the "Cancel" button (if you have one).
Viggy
-
July 14th, 2004, 05:53 PM
#4
I have no OK button (I deleted it when I created the dialog) and I can't find any OnOK method.
-
July 14th, 2004, 05:57 PM
#5
Add it using the Class Wizard (or whatever they are calling it in VS 7.1; I forget).
Vig.
-
July 15th, 2004, 03:35 AM
#6
Take a look at the following FAQ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|