|
-
April 15th, 1999, 03:10 AM
#1
Change default button?
Hi All,
How can I change default button in dialog box when applications is running?
thanx Martin
-
April 15th, 1999, 04:52 AM
#2
Re: Change default button?
Try setting or resetting the BS_DEFPUSHBUTTON style.
Dave
-
April 15th, 1999, 04:58 AM
#3
Re: Change default button?
I tried this, but only the button's look was changed.
-
April 15th, 1999, 06:37 AM
#4
Re: Change default button?
Did you reset the previous default? I don't know that this will work, but I don't see any other way to do it...
Dave
-
May 9th, 1999, 10:13 PM
#5
Re: Change default button?
if you use Setfocus to that control(default Pbutton)
Alternatively use the tab order...so the default PB comes before the other Buttons..............
-
May 9th, 1999, 10:29 PM
#6
Re: Change default button?
- Add a new button to your dialog.
- make this the new default button
- remove tab order from this button
- hide this button
- Add an OnButton...() Method to this button via ClassWizard
- in then OnButton...() Method call the OnButton..() Method of the visible buttons as you like ....
-
May 10th, 1999, 02:49 AM
#7
Re: Change default button?
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
|