Visual Studio 2010 - C++ MFC application with Ribbon UI - Transparency in bitmaps -


i playing around small mfc-wizard-generated application, in visual c++ 2010, , decided put own bitmap resources replace three-cubes mfc bitmap shows in ribbon ui application button, aka "marble".

the original appeared use black (0,0,0) transparency color, unable determine mfc ribbon (mfc-feature-pack stuff) stuff in visual studio 2010 determine transparency on bitmap used ribbon's main icon.

the properties of ribbon (idr_ribbon) show image=idb_main, , idb_main 32x32 bitmap in bmp format, loaded disk file called main.bmp.

some of bitmap resources in project have looks expect: magenta color becomes transparent, mfc main bitmap did not use color scheme or palette.

here example of actual results, hope show results not wanted: alt text

incidentally, not seem possible use icon resource in application button, little mystified how pull off transparency in it.

translucent png, perhaps? did know bmp files can have alpha channels?


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -