Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to set the CImageList to the ToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to set the CImageList to the ToolBar

 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 to set the CImageList to the ToolBar
    Posted: 21 March 2007 at 7:05am
Hi,
 
I have created the Menu by using m_ToolBar.CreateToolBar(...) and pecifying the number of button by using m_ToolBar.SetButtons(..).
 
Now, I have CImageList and I want to set these image list to the toolbar.
 
How can I set the CImageList to the ToolBar?
 
Please Help Me !
 
Thank You,
Makarand
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: 22 March 2007 at 2:07am
Hi,
 
add it to global image manager:
 
XTPImageManager()->SetIcons(&m_il, ....);
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: 27 March 2007 at 2:14am
Hi Oleg,
 
Thank you for the reply.
I am able to set the Image list by using XTPImageManager()->SetIcons(&
 
I have created the the toolbar below the main toolbar and able to set the image.
 
Now I want to set the remaining area of the toolbar which is not getting refreshed.
 
 
How can I set the remaining background area of the Toolbar?
 
Thank You,
Makarand.
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: 27 March 2007 at 5:14am
Hi,
 
Have no idea what "remaining background area" do you mean. Show some screenshot.
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: 27 March 2007 at 5:21am
Hi,
 
I can see entire toolbar just below the Menubar from extreme left to extreme right of the screen. But the portion of the toolbar where buttons are present or inserted is visible, remaining toolbar area is not getting refreshed.. 
 
How can I send you the snapshot or you got my point?
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: 27 March 2007 at 10:48am
Hi,
 
Show me all code you use to create.show toolbar. or may be you can modify our sample to reproduce this problem?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 27 March 2007 at 10:50am
Hi,
actually why do you use CreateToolBar method to create it ? do you use CXTPCommandBars class ? call pCommandBars->Add instead of CreateToolBar.
 
Please follow our samples.
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.031 seconds.