![]() |
How can I Change the Icon of the toolbar button? |
Post Reply
|
| Author | |
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
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 ! |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 September 2007 at 9:08am |
|
Hi,
Set Icons to XTPImageManager(). See methods of CXTPImageManager class.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 October 2007 at 1:58am |
|
How to add Bitmap to Resource?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Makarand
Senior Member
Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 October 2007 at 7:40am |
|
What is replacement function of XTImageManager()->AddIcon
XTImageManager()->AddIcon(IDMSTATUSHISTORYERROR,ilTemp->ExtractIcon(1), m_TBImgSize, TRUE, TRUE); |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 October 2007 at 8:38am |
|
XTPImageMaanger()->SetIcon.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |