Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - can we get window handle of control in ribbon bar?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

can we get window handle of control in ribbon bar?

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 June 2008 at 11:37am
Hi,
CXTPControlComboBox don't have dc.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.