Print Page | Close Window

How to set png file or bmp file on a button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11254
Printed Date: 08 July 2024 at 1:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to set png file or bmp file on a button
Posted By: vijaymahajan
Subject: How to set png file or bmp file on a button
Date Posted: 30 June 2008 at 7:13am
Hello,
In your sample ribbon mdi application,there is a group of png images.
suppose i have a single png file,or bmp file,then i am trying to put it on
the button as follows
 
pCommandBars->GetImageManager()->SetIcons(IDP_NEW_OPTION,ID_OPTIONS_COLORCORRECT,CSize(32,32),xtpImageNormal);
 
same way i tried for bmp image also,means instead of IDP_NEW_OPTIONS which is id of the png image,i gave id of bitmap image.
 
Is it necessary to make a group like u made?
but it is giving me error.please guide me where i am making the mistake. 
 
Thanks And Regards,
Vijay.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net