Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtCmdIcon Collapse All
Subject Author Date
Massimo Germi Sep 16, 2006 - 10:11 AM

Hi,
how can I load .png file and assign it to a CExtCmdIcon (CExtRibbonNode::m_iconBig | CExtRibbonNode::m_iconSmall)?


Thanks a lot

Technical Support Sep 16, 2006 - 11:09 AM

The Prof-UIS library itself does not implement classes for working with PNG images. But you can use LibPNG and ZLib libraries for these puproses. Most of image processing libraries use LibPNG and ZLib. We extensively use PNG images in the ProfSkin project and LibPNG and ZLib are linked with ProfSkin. The CExtSkinBitmap class defined in ProfSkin is a simple extension of the CExtBitmap class and allows you load PNG images from a file on disk or from resources. So, you can link your project with the ProfSkin library and use the CExtSkinBitmap objects to load PNG images. After loading the needed PNG image, you can set the CExtCmdIcon::m_bmp*** properties and any other CExtBitmap variables used in Prof-UIS.