// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Anyflatcombo.pas' rev: 21.00

#ifndef AnyflatcomboHPP
#define AnyflatcomboHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Commctrl.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Anyflatcombo
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAnyFlatCustomComboBox;
class PASCALIMPLEMENTATION TAnyFlatCustomComboBox : public Stdctrls::TCustomComboBox
{
	typedef Stdctrls::TCustomComboBox inherited;
	
private:
	bool FUpDropdown;
	int FButtonWidth;
	bool msMouseInControl;
	HWND FListHandle;
	void *FListInstance;
	void *FDefListProc;
	HWND FChildHandle;
	bool FSolidBorder;
	bool FReadOnly;
	int FEditOffset;
	HIDESBASE void __fastcall ListWndProc(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
	HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	void __fastcall PaintButtonGlyph(HDC DC, int x, int y);
	void __fastcall PaintButton(int bnStyle);
	void __fastcall PaintBorder(HDC DC, const bool SolidBorder);
	void __fastcall PaintDisabled(void);
	bool __fastcall GetSolidBorder(void);
	int __fastcall GetListHeight(void);
	void __fastcall SetReadOnly(bool Value);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall ComboWndProc(Messages::TMessage &Message, HWND ComboWnd, void * ComboProc);
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	virtual void __fastcall CreateWnd(void);
	__property bool SolidBorder = {read=FSolidBorder, nodefault};
	__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
	DYNAMIC void __fastcall DrawImage(HDC DC, int Index, const Types::TRect &R);
	
public:
	__fastcall virtual TAnyFlatCustomComboBox(Classes::TComponent* AOwner);
	__fastcall virtual ~TAnyFlatCustomComboBox(void);
public:
	/* TWinControl.CreateParented */ inline __fastcall TAnyFlatCustomComboBox(HWND ParentWindow) : Stdctrls::TCustomComboBox(ParentWindow) { }
	
};


class DELPHICLASS TAnyFlatComboBox;
class PASCALIMPLEMENTATION TAnyFlatComboBox : public TAnyFlatCustomComboBox
{
	typedef TAnyFlatCustomComboBox inherited;
	
__published:
	__property Color = {default=-16777211};
	__property DragMode = {default=0};
	__property DragCursor = {default=-12};
	__property DropDownCount = {default=8};
	__property Enabled = {default=1};
	__property Font;
	__property ItemHeight;
	__property Items;
	__property MaxLength = {default=0};
	__property ParentColor = {default=0};
	__property ParentFont = {default=1};
	__property ParentShowHint = {default=1};
	__property PopupMenu;
	__property ShowHint;
	__property Sorted = {default=0};
	__property TabOrder = {default=-1};
	__property TabStop = {default=1};
	__property Text;
	__property ReadOnly = {default=0};
	__property Visible = {default=1};
	__property ItemIndex;
	__property OnChange;
	__property OnClick;
	__property OnDblClick;
	__property OnDragDrop;
	__property OnDragOver;
	__property OnDrawItem;
	__property OnDropDown;
	__property OnEndDrag;
	__property OnEnter;
	__property OnExit;
	__property OnKeyDown;
	__property OnKeyPress;
	__property OnKeyUp;
	__property OnStartDrag;
	__property Anchors = {default=3};
	__property BiDiMode;
	__property Constraints;
	__property DragKind = {default=0};
	__property ParentBiDiMode = {default=1};
	__property OnEndDock;
	__property OnStartDock;
public:
	/* TAnyFlatCustomComboBox.Create */ inline __fastcall virtual TAnyFlatComboBox(Classes::TComponent* AOwner) : TAnyFlatCustomComboBox(AOwner) { }
	/* TAnyFlatCustomComboBox.Destroy */ inline __fastcall virtual ~TAnyFlatComboBox(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TAnyFlatComboBox(HWND ParentWindow) : TAnyFlatCustomComboBox(ParentWindow) { }
	
};


class DELPHICLASS TAnyFlatFontComboBox;
class PASCALIMPLEMENTATION TAnyFlatFontComboBox : public TAnyFlatCustomComboBox
{
	typedef TAnyFlatCustomComboBox inherited;
	
private:
	Graphics::TBitmap* FTrueTypeBMP;
	Classes::TNotifyEvent FOnClick;
	bool FUpdate;
	int Numused;
	HIDESBASE MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMFontChange(Messages::TMessage &Message);
	
protected:
	virtual void __fastcall Loaded(void);
	void __fastcall Init(void);
	void __fastcall Reset(void);
	virtual void __fastcall PopulateList(void);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	DYNAMIC void __fastcall DrawImage(HDC DC, int Index, const Types::TRect &R);
	virtual void __fastcall CreateWnd(void);
	
public:
	__fastcall virtual TAnyFlatFontComboBox(Classes::TComponent* AOwner);
	__fastcall virtual ~TAnyFlatFontComboBox(void);
	
__published:
	__property Text;
	__property Color = {default=-16777211};
	__property DragMode = {default=0};
	__property DragCursor = {default=-12};
	__property DropDownCount = {default=8};
	__property Enabled = {default=1};
	__property Font;
	__property Anchors = {default=3};
	__property BiDiMode;
	__property Constraints;
	__property DragKind = {default=0};
	__property ParentBiDiMode = {default=1};
	__property ItemHeight;
	__property ParentColor = {default=0};
	__property ParentFont = {default=1};
	__property ParentShowHint = {default=1};
	__property PopupMenu;
	__property ShowHint;
	__property TabOrder = {default=-1};
	__property TabStop = {default=1};
	__property Visible = {default=1};
	__property OnChange;
	__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
	__property OnDblClick;
	__property OnDragDrop;
	__property OnDragOver;
	__property OnDropDown;
	__property OnEndDrag;
	__property OnEnter;
	__property OnExit;
	__property OnKeyDown;
	__property OnKeyPress;
	__property OnKeyUp;
	__property OnStartDrag;
	__property OnEndDock;
	__property OnStartDock;
public:
	/* TWinControl.CreateParented */ inline __fastcall TAnyFlatFontComboBox(HWND ParentWindow) : TAnyFlatCustomComboBox(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Anyflatcombo */
using namespace Anyflatcombo;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// AnyflatcomboHPP
