Print Page | Close Window

can we get window handle of control in ribbon bar?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11233
Printed Date: 06 October 2024 at 10:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: can we get window handle of control in ribbon bar?
Posted By: vijaymahajan
Subject: can we get window handle of control in ribbon bar?
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: vijaymahajan
Date 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
 


Posted By: Oleg
Date Posted: 28 June 2008 at 11:37am
Hi,
CXTPControlComboBox don't have dc.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net