By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,148 Members | 748 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,148 IT Pros & Developers. It's quick & easy.

Disabling the gray masking effect on a ToolBarButton

P: n/a
I have a ToolBarButton that when I set it to disabled (button.Enabled =
false;) causes a really ugly gray masking effect to take place. This is
normal and the intended way of the button, but I would like to clean it up.
Instead of using the gray mask, I want to use my own grayscaled high quality
image. I thought by simply setting button.ImageIndex = new_num; (where
new_num is the index of the grayscale image) I could do this. But alas, that
didn't work.

So, just HOW do I remove the masking effect on the toolbar buttons when they
are disabled? I have been doing some reading in which I might be able to use
the TBCDRF_NOETCHEDEFFECT flag as part of a NM_CUSTOMDRAW, but I am not sure
just how that would be implemented.

Has anyone else had to deal with this? How did you solve it?

---
Regards,
Dana M. Epp
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.