![]() |
can we get window handle of control in ribbon bar? |
Post Reply
|
| Author | |
vijaymahajan
Groupie
Joined: 16 June 2008 Status: Offline Points: 92 |
Post Options
Thanks(0)
Quote Reply
Topic: can we get window handle of control in ribbon bar?Posted: 27 June 2008 at 8:46am |
|
As CXTPControl is not derived from CWnd,so we cant get the handle for a window in ribbon bar. same is the case for all other classes derived from CXTPControl. How can we create DDX variables of controls in ribbon bar,if we want to use them in other classes than mainframe?
can we get hwnd of these controls?
please guide me,how can i relate CXTPControl to CWnd?
Please guide me accordingly.
Thanks And Regards,
Vijay
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2008 at 4:26pm |
|
Hi,
See CommonControls sample. it shows how to add CWnd to ToolBar. Same way for Ribbon.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vijaymahajan
Groupie
Joined: 16 June 2008 Status: Offline Points: 92 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2008 at 2:20am |
|
Hello,
I went through the commoncontrols sample,But could not understand.
CXTPControlComboBox* pComboEdit = (CXTPControlComboBox*)pGroup1->Add(xtpControlComboBox, ID_EDIT_COMBO);pComboEdit->SetDropDownListStyle();pComboEdit->EnableAutoComplete();pComboEdit->SetTooltip(_T("Font Face"));pComboEdit->SetWidth(150);pComboEdit->AddString(_T("PXLSoft"));
We have created a combo on the ribbon bar with above code.But now we want the dc of this combobox.how can i get it? Please help me?If possible please send the code abt u r talking.
Thanks And Regards,
Vijay
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 June 2008 at 11:37am |
|
Hi,
CXTPControlComboBox don't have dc.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |