How to add an XTPToolbar derived class? |
Post Reply |
Author | |
clintsinger
Newbie Joined: 15 May 2003 Location: Canada Status: Offline Points: 9 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
On this week we will release Suite Pro 8.5. There will be sample of common controls on the toolbar.
|
|
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 |