Sign in
United States (English)
Brasil (Português)
Česká republika (Čeština)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italiano)
Россия (Русский)
대한민국 (한국어)
中华人民共和国 (中文)
台灣 (中文)
日本 (日本語)
香港特别行政區 (中文)
Visual C++ Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Visual C++ Developer Center
>
Visual C++ Forums
>
Visual C++ General
>
MFC Ribbon: Is there a toggle button?
Ask a question
Search Forums:
Search Visual C++ General Forum
Search All Visual C++ Forums
Search All MSDN Forums
MFC Ribbon: Is there a toggle button?
Tuesday, November 03, 2009 7:13 PM
lesPaul456
0
Sign In to Vote
Hello,
I've been messing around with the MFC Feature Pack (the ribbon in particular) and I was wondering if there is a toggle button (or something similar).
I want to achieve an affect similar to the "bold" button in Word, where once it is selected, it remains highlighted until it is selected again.
Does anyone have any ideas on how to do this?
Thanks!
Reply
Quote
Answers
Tuesday, November 03, 2009 10:44 PM
Nikita Leontiev
0
Sign In to Vote
Here
is what you're looking =)
Marked As Answer by
lesPaul456
Wednesday, November 04, 2009 1:49 AM
Reply
Quote
All Replies
Tuesday, November 03, 2009 8:23 PM
Nikita Leontiev
0
Sign In to Vote
If you are using CMFCToolBarButton, then you can use CMFCToolBarButton::SetStyle method with TBBS_PRESSED style.
Reply
Quote
Tuesday, November 03, 2009 8:33 PM
lesPaul456
0
Sign In to Vote
Thanks for the reply.
Actually I'm using the Ribbon, so I was using CMFCRibbonButton. It doesn't look like CMFCRibbonButton has that method...
It might have a similar method, but I'm not sure.
Any other ideas? Thanks!
Reply
Quote
Tuesday, November 03, 2009 10:44 PM
Nikita Leontiev
0
Sign In to Vote
Here
is what you're looking =)
Marked As Answer by
lesPaul456
Wednesday, November 04, 2009 1:49 AM
Reply
Quote
Wednesday, November 04, 2009 1:48 AM
lesPaul456
0
Sign In to Vote
Here
is what you're looking =)
Nikita L, you are
awesome
! Thanks!
Reply
Quote
Need Help with Forums? (FAQ)
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Terms of Use
|
Trademarks
|
Privacy Statement
|
Contact Us