// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'sListView.pas' rev: 6.00

#ifndef sListViewHPP
#define sListViewHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <acSBUtils.hpp>	// Pascal unit
#include <sMessages.hpp>	// Pascal unit
#include <sCommonData.hpp>	// Pascal unit
#include <CommCtrl.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit
#include <sConst.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <ImgList.hpp>	// Pascal unit
#include <ComCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Slistview
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TsCustomListView;
class PASCALIMPLEMENTATION TsCustomListView : public Comctrls::TCustomListView 
{
	typedef Comctrls::TCustomListView inherited;
	
private:
	bool Loading;
	HWND FhWndHeader;
	void *FhHeaderProc;
	void *FhDefHeaderProc;
	int FPressedColumn;
	Scommondata::TsCommonData* FCommonData;
	int HoverColIndex;
	Scommondata::TsBoundLabel* FBoundLabel;
	bool FHighlightHeaders;
	Comctrls::TLVAdvancedCustomDrawEvent FOldAdvancedCustomDraw;
	Comctrls::TLVAdvancedCustomDrawItemEvent FOldAdvancedCustomDrawItem;
	bool FFlag;
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Msg);
	MESSAGE void __fastcall WMHitTest(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMParentNotify(Messages::TWMParentNotify &Message);
	void __fastcall NewAdvancedCustomDraw(Comctrls::TCustomListView* Sender, const Types::TRect &ARect, Comctrls::TCustomDrawStage Stage, bool &DefaultDraw);
	void __fastcall NewAdvancedCustomDrawItem(Comctrls::TCustomListView* Sender, Comctrls::TListItem* Item, Comctrls::TCustomDrawState State, Comctrls::TCustomDrawStage Stage, bool &DefaultDraw);
	void __fastcall NewAdvancedCustomDrawSubItem(Comctrls::TCustomListView* Sender, Comctrls::TListItem* Item, int SubItem, Comctrls::TCustomDrawState State, Comctrls::TCustomDrawStage Stage, bool &DefaultDraw, Graphics::TBitmap* Bmp)/* overload */;
	void __fastcall PrepareCache(void);
	Types::TRect __fastcall GetHeaderColumnRect(int Index);
	void __fastcall ColumnSkinPaint(const Types::TRect &ControlRect, int cIndex);
	void __fastcall PaintHeader(void);
	int __fastcall ColumnLeft(int Index);
	
protected:
	int HotItem;
	Acsbutils::TacScrollWnd* ListSW;
	Graphics::TColor GridColor;
	int iSelectIndex;
	bool StyleChanging;
	Classes::TNotifyEvent FOnMouseLeave;
	Classes::TNotifyEvent FOnMouseEnter;
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	HIDESBASE void __fastcall HeaderWndProc(Messages::TMessage &Message);
	void __fastcall InitSkinParams(void);
	int __fastcall AllColWidth(void);
	bool __fastcall FullRepaint(void);
	__property BorderStyle  = {default=1};
	void __fastcall InvalidateSmooth(bool Always);
	virtual Imglist::TCustomImageList* __fastcall GetImageList(void);
	HIDESBASE void __fastcall SetViewStyle(Comctrls::TViewStyle Value);
	
public:
	int ListLineHeight;
	__fastcall virtual TsCustomListView(Classes::TComponent* AOwner);
	virtual void __fastcall InitControl(const bool Skinned);
	__fastcall virtual ~TsCustomListView(void);
	virtual void __fastcall AfterConstruction(void);
	virtual void __fastcall Loaded(void);
	virtual void __fastcall CreateWnd(void);
	void __fastcall SelectItem(int Index);
	
__published:
	__property Scommondata::TsBoundLabel* BoundLabel = {read=FBoundLabel, write=FBoundLabel};
	__property Scommondata::TsCommonData* SkinData = {read=FCommonData, write=FCommonData};
	__property bool HighlightHeaders = {read=FHighlightHeaders, write=FHighlightHeaders, default=1};
	__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
	__property Classes::TNotifyEvent OnMouseLeave = {read=FOnMouseLeave, write=FOnMouseLeave};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsCustomListView(HWND ParentWindow) : Comctrls::TCustomListView(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TsListView;
class PASCALIMPLEMENTATION TsListView : public TsCustomListView 
{
	typedef TsCustomListView inherited;
	
__published:
	__property Align  = {default=0};
	__property AllocBy  = {default=0};
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property BorderStyle  = {default=1};
	__property BorderWidth  = {default=0};
	__property Checkboxes  = {default=0};
	__property Color  = {default=-2147483643};
	__property Columns ;
	__property ColumnClick  = {default=1};
	__property Constraints ;
	__property Ctl3D ;
	__property DragCursor  = {default=-12};
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property Font ;
	__property FlatScrollBars  = {default=0};
	__property FullDrag  = {default=0};
	__property GridLines  = {default=0};
	__property HideSelection  = {default=1};
	__property HotTrack  = {default=0};
	__property HotTrackStyles  = {default=0};
	__property HoverTime  = {default=-1};
	__property IconOptions ;
	__property Items ;
	__property LargeImages ;
	__property MultiSelect  = {default=0};
	__property OwnerData  = {default=0};
	__property OwnerDraw  = {default=0};
	__property ReadOnly  = {default=0};
	__property RowSelect  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property ParentColor  = {default=0};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowColumnHeaders  = {default=1};
	__property ShowWorkAreas  = {default=0};
	__property ShowHint ;
	__property SmallImages ;
	__property SortType  = {default=0};
	__property StateImages ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property ViewStyle  = {default=0};
	__property Visible  = {default=1};
	__property OnAdvancedCustomDraw ;
	__property OnAdvancedCustomDrawItem ;
	__property OnAdvancedCustomDrawSubItem ;
	__property OnChange ;
	__property OnChanging ;
	__property OnClick ;
	__property OnColumnClick ;
	__property OnColumnDragged ;
	__property OnColumnRightClick ;
	__property OnCompare ;
	__property OnContextPopup ;
	__property OnCustomDraw ;
	__property OnCustomDrawItem ;
	__property OnCustomDrawSubItem ;
	__property OnData ;
	__property OnDataFind ;
	__property OnDataHint ;
	__property OnDataStateChange ;
	__property OnDblClick ;
	__property OnDeletion ;
	__property OnDrawItem ;
	__property OnEdited ;
	__property OnEditing ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnGetImageIndex ;
	__property OnGetSubItemImage ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnInfoTip ;
	__property OnInsert ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnResize ;
	__property OnSelectItem ;
	__property OnStartDock ;
	__property OnStartDrag ;
	__property BoundLabel ;
	__property SkinData ;
public:
	#pragma option push -w-inl
	/* TsCustomListView.Create */ inline __fastcall virtual TsListView(Classes::TComponent* AOwner) : TsCustomListView(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TsCustomListView.Destroy */ inline __fastcall virtual ~TsListView(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TsListView(HWND ParentWindow) : TsCustomListView(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TsHackedListItems;
class PASCALIMPLEMENTATION TsHackedListItems : public Comctrls::TListItems 
{
	typedef Comctrls::TListItems inherited;
	
public:
	bool FNoRedraw;
public:
	#pragma option push -w-inl
	/* TListItems.Create */ inline __fastcall TsHackedListItems(Comctrls::TCustomListView* AOwner) : Comctrls::TListItems(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TListItems.Destroy */ inline __fastcall virtual ~TsHackedListItems(void) { }
	#pragma option pop
	
};


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

}	/* namespace Slistview */
using namespace Slistview;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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