Print Page | Close Window

How to place the combobox control in Toolbar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7034
Printed Date: 12 November 2025 at 7:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to place the combobox control in Toolbar
Posted By: Ashok
Subject: How to place the combobox control in Toolbar
Date Posted: 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'



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



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