![]() |
How to set png file or bmp file on a button |
Post Reply ![]() |
Author | |
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |