![]() |
How to place the combobox control in Toolbar |
Post Reply
|
| Author | |
Ashok
Senior Member
Joined: 02 May 2007 Status: Offline Points: 164 |
Post Options
Thanks(0)
Quote Reply
Topic: How to place the combobox control in ToolbarPosted: 03 May 2007 at 8:46am |
|
Hai,
I have a class CFlatCombo which is derived from CComboBoxEx and it is used for placing the control at the desired position in the ToolBar. I am using your CXTPControlComboBox as a base class for my class, but errors. Is there is any other way to implement. Please suggest.
After making your CXTPControlComboBox as a Base class I got some errors like this.
Error list:
error C2039: 'SendMessageA' : is not a member of 'CFlatCombo'
error C2039: 'SendMessageA' : is not a member of 'CFlatCombo' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(UINT,CPoint)' to 'void (__thiscall CWnd::* )(UINT,CPoint)' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(UINT,CPoint)' to 'void (__thiscall CWnd::* )(UINT,CPoint)' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(UINT,CPoint)' to 'void (__thiscall CWnd::* )(UINT,CPoint)' error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CFlatCombo::* )(UINT,short,CPoint)' to 'BOOL (__thiscall CWnd::* )(UINT,short,CPoint)' error C2440: 'static_cast' : cannot convert from 'int (__thiscall CFlatCombo::* )(LPCREATESTRUCT)' to 'int (__thiscall CWnd::* )(LPCREATESTRUCT)' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(UINT,int,int)' to 'void (__thiscall CWnd::* )(UINT,int,int)' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(UINT,CPoint)' to 'void (__thiscall CWnd::* )(UINT,CPoint)' error C2440: 'static_cast' : cannot convert from 'void (__thiscall CFlatCombo::* )(CWnd *)' to 'void (__thiscall CWnd::* )(CWnd *)' error C2039: 'OnPaint' : is not a member of 'CFlatCombo' error C2065: 'OnPaint' : undeclared identifier error C2039: 'OnCreate' : is not a member of 'CXTPControlComboBox' error C3861: 'GetSafeHwnd': identifier not found error C3861: 'GetComboBoxCtrl': identifier not found error C2065: 'm_hWnd' : undeclared identifier error C3861: 'EnableToolTips': identifier not found error C2660: 'CXTPControlPopup::OnMouseMove' : function does not take 2 arguments error C2039: 'OnMouseWheel' : is not a member of 'CXTPControlComboBox' error C2660: 'IsWindowEnabled' : function does not take 0 arguments error C2660: 'IsWindowEnabled' : function does not take 0 arguments error C2039: 'OnSize' : is not a member of 'CXTPControlComboBox' error C2660: 'GetWindowRect' : function does not take 1 arguments error C2664: 'CXTPControl::ScreenToClient' : cannot convert parameter 1 from 'CRect *' to 'CPoint *' error C2039: 'OnNcLButtonDown' : is not a member of 'CXTPControlComboBox' error C3861: 'GetItem': identifier not found error C2664: 'CClientDC::CClientDC(CWnd *)' : cannot convert parameter 1 from 'CFlatCombo *const ' to 'CWnd *' error C3861: 'GetFont': identifier not found error C2660: 'GetClientRect' : function does not take 1 arguments error C3861: 'GetImageList': identifier not found error C3861: 'GetSafeHwnd': identifier not found error C2039: 'OnToolHitTest' : is not a member of 'CXTPControlComboBox' error C2039: 'GetItem' : is not a member of 'CFlatCombo' error C2039: 'GetItem' : is not a member of 'CFlatCombo' error C3861: 'InsertItem': identifier not found error C3861: 'InsertItem': identifier not found error C2039: 'GetItem' : is not a member of 'CFlatCombo' |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 May 2007 at 12:44pm |
|
Hi,
CXTPControlComboBox is not even CWnd derived. Think easy for you to use CComboBoxEx than create new combo. Check Samples\CommandBars\CommonControls it show how to put CWnd control to toolbar.
|
|
|
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 |