Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How can I Change the Icon of the toolbar button?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can I Change the Icon of the toolbar button?

 Post Reply Post Reply
Author
Message
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Topic: How can I Change the Icon of the toolbar button?
    Posted: 29 September 2007 at 5:34am
My previous code is as follow-->
_________________________________________________________________________________

CXTImage* pImage =XTImageManager()->GetImage(IDMMAGNETFULL,TRUE);
XTImageManager()->AddIcon(IDMMAGNET,pImage->GetIcon(),m_TBImgSize,TRUE,TRUE);
_________________________________________________________________________________

Please give me replacement code to set image to the button.
Please help me !
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 September 2007 at 9:08am
Hi,
Set Icons to XTPImageManager(). See methods of CXTPImageManager class.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 1:58am
How to add Bitmap to Resource?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 6:00am
???
See [app].rc file - you can add them manually or using visual studio resource editor.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Makarand View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 February 2007
Location: India
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote Makarand Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 7:40am
What is replacement function of XTImageManager()->AddIcon

XTImageManager()->AddIcon(IDMSTATUSHISTORYERROR,ilTemp->ExtractIcon(1), m_TBImgSize, TRUE, TRUE);

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 October 2007 at 8:38am
XTPImageMaanger()->SetIcon.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.