Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How do change toolbar icons dynamically?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do change toolbar icons dynamically?

 Post Reply Post Reply
Author
Message
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Topic: How do change toolbar icons dynamically?
    Posted: 28 October 2004 at 1:05am
I have 5 toolbars and want to change their icons at runtime. The icon size may also changed. How to make it?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 28 October 2004 at 6:41am

pControl->SetIconId. + XTPImageManager->SetIcons.

+see CommandBarIcons sample.

 

somebody, add this to FAQ!

 

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jeffcmj View Drop Down
Groupie
Groupie


Joined: 28 October 2004
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffcmj Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2004 at 7:26am
Thanks. It seems toolbar's SetIconSize works. But if I use a large icon, it seems the menu will use a scale down version of the icon. I think I shall use XTPImageManager->SetIcons to set a 16*16 icons for the same ID, shall I?
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.