|
-
May 12th, 1999, 04:45 PM
#1
How to unpress a button
I have used PressButton to show a toolbar button pressed down. How can I now get that button to unpress?
Thanks
-
May 13th, 1999, 05:26 AM
#2
Re: How to unpress a button
Have you tried PressButton( SomeButtonID, FALSE)?
The second parameter to PressButton is TRUE to press a button, FALSE to release a button.
-
May 13th, 1999, 08:31 AM
#3
Re: How to unpress a button
Thanks Bob.
Do you know how to initially set up buttons as greyed out and then enable them say when you open a file. As before the buttons are not attached to any menu option.
Thanks again
-
May 13th, 1999, 08:43 AM
#4
Re: How to unpress a button
The combination of CToolBarCtrl::GetState and CToolBarCtrl::SetState should do what you want. I believe the symbolic name of the bit
you want is TBSTATE_ENABLED; the state bits are discussed in the help for CToolBarCtrl::AddButton.
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
|