Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Disabled/Grayed Command Bar buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disabled/Grayed Command Bar buttons

 Post Reply Post Reply
Author
Message
Pokemon View Drop Down
Newbie
Newbie


Joined: 11 June 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pokemon Quote  Post ReplyReply Direct Link To This Post Topic: Disabled/Grayed Command Bar buttons
    Posted: 11 June 2005 at 7:22pm

I am using 24bits bitmap for my CommandBar buttons.  When a button is disabled, CommandBar shows a dark gray box with little detail.  Can a disabled button look more like a disabled button in Office 2003.

For testing purposes, I tried using the printer bitmap in Office 2003, and it does not grayed correctly.

Can I use 2 bitmaps for a toolbar button?  One for Enabled and the other for disabled.

Thank you for your help!

 

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2005 at 8:47am

1. You can set option

pCommandBar->GetPaintManager()->GetIconsInfo()->bUs eDisabledIcons = TRUE;

it will generate disabled icons

2. You can create disabled bitmap manually and set it

pCommandBar->GetImageManager()->SetIcons(... , xtpImageDisabled);

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.