Professional UI Solutions
Site Map   /  Register


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 General Discussion » load png file in CExtCustomizeCmdTreeNode Collapse All
Subject Author Date
Shailesh Nikam Feb 28, 2007 - 5:39 AM


Can you tell me how to load PNG file in CExtCustomizeCmdTreeNode class?


Suhai Gyorgy Feb 28, 2007 - 8:00 AM
Technical Support Mar 1, 2007 - 3:08 AM

We would also like to add the following:

1) If your application is customizable, you should assign loaded PNG images to command descriptors in the command manager by using g_CmdManager->CmdSetIcon(). There is a _bmpNormal property the CExtBitmap type in CExtCmdIcon so you should use it for keeping the PNG image associated with the icon.

2) If you application is based on the ribbon ui (CExtRibbonBar and CExtRibbonPage classes), you should assign loaded images to the CExtRibbonNode::m_iconBig and CExtRibbonNode::m_iconSmall objects of the CExtCmdIcon type (CExtCmdIcon::m_bmpNormal also stores a PNG image in this case). The CExtRibbonNode class is derived from CExtCustomizeCmdTreeNode.