|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Jul 9, 2010 - 12:08 AM
|
Dear Support, We use the following method for loading toolbar buttons:
CExtBitmap bmp;
bmp.LoadBMP_File(file, true);
bmp.AlphaColor(crTransparent, 0, 0);
HICON hIcon = bmp.CreateHICON();
g_CmdManager->CmdSetIcon(
strProfileName,
pCmdItemMenu->m_nCmdID,
hIcon,
false
); We would like to use 32 png files, and have them alpha blend (with white as the backgroung color) - what do we need to do to make it work? Thanks, Ron.
|
|
Offer Har
|
Jul 9, 2010 - 1:50 AM
|
OK... figured it out:
CExtSkinBitmap bmp;
bmpMenu.LoadPNG_File(file, true);
hIcon = bmp.CreateHICON(); Works great - one question - why is the CExtSkinBitmap not part if Prof-UIS? It is a very useful class. Ron.
|
|
Technical Support
|
Jul 9, 2010 - 4:48 AM
|
The CExtSkinBitmap class is part of ProfSkin library. It’s a very small library and you can link your project with it.
|
|