![]() |
CXTPControlComboBox inside a CXTPToolBar |
Post Reply ![]() |
Author | |
stringarray ![]() Newbie ![]() Joined: 01 February 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 01 February 2008 at 12:11pm |
Hello, I'm trying to put a CXTPControlComboBox inside a CXTPToolBar, by itself, with no buttons or other controls.
I did it so far with this:
the problem is, when I call "LoadToolbar" using resource IDR_TOOLBAR_NETWORK, a toolbar with an empty button is loaded from resource, and I cannot delete that button from the resource toolbar because I get a message saying "empty toolbars not allowed". So I get a toolbar with a button and the combobox. How do I create a toolbar with a combobox only? |
|
![]() |
|
stringarray ![]() Newbie ![]() Joined: 01 February 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Also, is there a way to put a regular MFC CComboBox in a CXTPToolBar?
|
|
![]() |
|
stringarray ![]() Newbie ![]() Joined: 01 February 2008 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
I found it!
you just call: m_pNetToolBar->SetBarID(IDR_TOOLBAR_NETWORKINTERFACE); Instead of "LoadToolbar". ![]() |
|
![]() |
|
tataxin ![]() Newbie ![]() Joined: 22 May 2008 Location: United Kingdom Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
I do the same, but it can not work with thi command:
m_cbNet = new CXTPControlComboBox(); How can you do that? where is m_cbNet declarated? Thank you in advance. |
|
![]() |
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 |