BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums (read only)
 BCGControlBar Standard Edition General Discussion
 question?
 Forum Locked
Author Previous Topic Topic Next Topic  

flyoneday

8 Posts

Posted - 03/18/2004 :  12:27:19 AM  Show Profile
how can i change the content of combox on the
buid's toolbar dynamiclly?


Dawoun

450 Posts

Posted - 03/18/2004 :  01:27:32 AM  Show Profile  Visit Dawoun's Homepage
If I understand your question correctly, you want to change the contents of a CBCGToolbarComboBoxButton in one (or more) of your toolbars dynamically.
You can do this by first finding the combo box using the CBCGToolBar::GetCommandButtons() static function, and then going over all the instances of the combo box and using the AddItem() and DeleteItem() functions to change the contents.
You can see an example of how to find all the combo boxes with the same ID in the CBCGToolbarComboBoxButton::NotifyCommand() function, where in case of CBN_SELENDOK the selected item is set in all the OTHER combo boxes.

Go to Top of Page

flyoneday

8 Posts

Posted - 03/18/2004 :  03:50:19 AM  Show Profile
many thanks! i got it!

Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000