Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to set png file or bmp file on a button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set png file or bmp file on a button

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: How to set png file or bmp file on a button
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.