CXTPControlComboBox inside a CXTPToolBar |
Post Reply |
Author | |
tataxin
Newbie Joined: 22 May 2008 Location: United Kingdom Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 26 June 2008 at 6:56am |
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. |
|
stringarray
Newbie Joined: 01 February 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
I found it!
you just call: m_pNetToolBar->SetBarID(IDR_TOOLBAR_NETWORKINTERFACE); Instead of "LoadToolbar". |
|
stringarray
Newbie Joined: 01 February 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Also, is there a way to put a regular MFC CComboBox in a CXTPToolBar?
|
|
stringarray
Newbie Joined: 01 February 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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? |
|
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 |