Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to add an XTPToolbar derived class?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add an XTPToolbar derived class?

 Post Reply Post Reply
Author
Message
clintsinger View Drop Down
Newbie
Newbie


Joined: 15 May 2003
Location: Canada
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote clintsinger Quote  Post ReplyReply Direct Link To This Post Topic: How to add an XTPToolbar derived class?
    Posted: 16 September 2003 at 4:46pm

Hi,

I have a special need where I want to have an owner drawn toolbar. My need is to have a toolbar with four combo boxes and above each combobox is a line one of four colours.  When I click on a combobox I want it to auto populate with data from a database so that the combobox is dynamic.  In my mind, it seems that the best way to do this is class derived from CXTPToolbar.

Unfortunately there doesn't seem to be anyway to make a class that is derived from CXTPToolbar and use it.  The only thing that I can see is to use ->Add(...) from CXTPCommandBars and then call pCommandBar->LoadToolbar(IDR_RESOURCE) on the command bar that is returned from the Add(...) call.  This doesn't help because it creates it's own toolbar.  What we need is something like pCommandBars->Add(&MyCXTPToolbarDerivedClass).

Is there anyway to do something like this in the current ToolkitPro (8.0)?

Cheers,

Clint

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: 17 September 2003 at 12:10am
On this week we will release Suite Pro 8.5. There will be sample of common controls on the toolbar.
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.189 seconds.