![]() |
How to Use CComboBox in Ribbon |
Post Reply
|
| Author | |
archies
Groupie
Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Topic: How to Use CComboBox in RibbonPosted: 18 November 2009 at 3:48am |
|
Hi;
My existing application has an Owner draw ComboBoxEx , which is derived from CComboBox. Now i switched my Application to Ribbon , Please tell me how can i used that older ComboBoxEx class with minimum alteration.So that my Ribbon supports that combo , and handles the Selchnage event. *My combobox is created at runtime , and may be have more than one instance. Thnx |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 November 2009 at 7:12am |
|
Hi,
See Samples\CommandBars\CommonControls sample - it shows how to add any Window control to Toolbar.
but think better replace it to xtpControlComboBox/CXTPControlComboBox to match style. (see RibbonSample)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
archies
Groupie
Joined: 17 November 2009 Location: India Status: Offline Points: 33 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 November 2009 at 5:14am |
|
Hi Oleg ;
Thnx for ur quick response. i did this : CComboBoxEx *pControlClass; pControlClass = new CComboBoxEx(); pControlClass->Create(rect,this); CXTPControlCustom* pCustomControl = (CXTPControlCustom*)CXTPControlCustom::CreateObject(); pCustomControl->SetControl(pControlClass); pGroup->Add(pCustomControl, nID); it is working fine .. thnx |
|
![]() |
|
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 |