Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to place the combobox control in Toolbar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to place the combobox control in Toolbar

 Post Reply Post Reply
Author
Message
Ashok View Drop Down
Senior Member
Senior Member


Joined: 02 May 2007
Status: Offline
Points: 164
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ashok Quote  Post ReplyReply Direct Link To This Post Topic: How to place the combobox control in Toolbar
    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'
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.047 seconds.