Jump to content
  • Advertisement
Sign in to follow this  
tekmoto

One Last Thing about Win32 Toolbars (VC++ w/o MFC)...

This topic is 4895 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, Now that I've gotten the toolbar up and running, I need to get up to speed with the buttons for the Win32 toolbar. I used CreateWindowEx() with the TBstyle_FLAT option. Now, since Windows XP has various themes, I can't design the button bitmap's background to a specific color (since the toolbar background color can be different on different machines/operating systems...). How to I specify to substitute a specified color on the toolbar button's bitmap for the Window's menu background color (COLOR_MENU+1)? Thanks a lot, everyone! - Charles PS: Once this gets up and running I'll be sure to post a Win32 Toolbar guide. There seriously appears to be a lack of information on this area.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If I'm not mistaken, the color in the lower-left corner of your bitmap will be used as a 'transparency' color - all pixels with that color will be transparent. I think you can find this info poking about the toolbar button info on MSDN. (Well, maybe not.)

(It's been awhile since I did this, so I might be mistaken. But go to Google groups and google [transparent button "lower left"]. I appear to be correct.)

David

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I believe you are correct.

David, you are a true life saver

^_^

-Tekmoto

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!