📄 listview.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'ListView.pas' rev: 6.00
#ifndef ListViewHPP
#define ListViewHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <PropEdit.hpp> // Pascal unit
#include <PropList.hpp> // Pascal unit
#include <TypInfo.hpp> // Pascal unit
#include <CompInsp.hpp> // Pascal unit
#include <InspCtrl.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <ExtCtrls.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 Listview
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TListViewPropertyEditor;
class PASCALIMPLEMENTATION TListViewPropertyEditor : public Propedit::TPropertyEditor
{
typedef Propedit::TPropertyEditor inherited;
private:
Comctrls::TListItems* __fastcall GetListItems(void);
public:
virtual bool __fastcall Execute(void);
__property Comctrls::TListItems* ListItems = {read=GetListItems};
public:
#pragma option push -w-inl
/* TPropertyEditor.Create */ inline __fastcall virtual TListViewPropertyEditor(Proplist::TProperty* AProp) : Propedit::TPropertyEditor(AProp) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TListViewPropertyEditor(void) { }
#pragma option pop
};
#pragma option push -b-
enum TTargetPosition { tpNone, tpTop, tpItem, tpBottom };
#pragma option pop
class DELPHICLASS TInspectorData;
class PASCALIMPLEMENTATION TInspectorData : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
AnsiString FCaption;
int FImageIndex;
int FStateIndex;
Classes::TStrings* FSubitems;
__published:
__property AnsiString Caption = {read=FCaption, write=FCaption};
__property int ImageIndex = {read=FImageIndex, write=FImageIndex, nodefault};
__property int StateIndex = {read=FStateIndex, write=FStateIndex, nodefault};
__property Classes::TStrings* Subitems = {read=FSubitems, write=FSubitems};
public:
__fastcall TInspectorData(void);
__fastcall virtual ~TInspectorData(void);
};
class DELPHICLASS TfrmListViewEditor;
class PASCALIMPLEMENTATION TfrmListViewEditor : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Extctrls::TSplitter* splMain;
Extctrls::TPanel* pnlButtons;
Stdctrls::TButton* btnAdd;
Stdctrls::TButton* btnDelete;
Extctrls::TPanel* pnlSysButtons;
Stdctrls::TButton* btnOK;
Stdctrls::TButton* btnCancel;
Compinsp::TComponentInspector* cinItemProperties;
Comctrls::TListView* lsvItems;
Stdctrls::TButton* btnUp;
Stdctrls::TButton* btnDown;
void __fastcall lsvItemsDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
void __fastcall lsvItemsDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall FormActivate(System::TObject* Sender);
void __fastcall trvItemsStartDrag(System::TObject* Sender, Controls::TDragObject* &DragObject);
void __fastcall FormDestroy(System::TObject* Sender);
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall btnDeleteClick(System::TObject* Sender);
void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
void __fastcall cinItemPropertiesExit(System::TObject* Sender);
void __fastcall cinItemPropertiesChange(System::TObject* Sender, int TheIndex);
void __fastcall lsvItemsChange(System::TObject* Sender, Comctrls::TListItem* Item, Comctrls::TItemChange Change);
void __fastcall FormShow(System::TObject* Sender);
void __fastcall btnAddClick(System::TObject* Sender);
void __fastcall btnUpClick(System::TObject* Sender);
void __fastcall btnDownClick(System::TObject* Sender);
private:
TListViewPropertyEditor* FEditor;
Comctrls::TListItem* DragItem;
TInspectorData* FInspectorData;
void __fastcall ItemToData(Comctrls::TListItem* Item, TInspectorData* Data);
void __fastcall DataToItem(TInspectorData* Data, Comctrls::TListItem* Item);
HIDESBASE MESSAGE void __fastcall WMGetMinMaxInfo(Messages::TMessage &Msg);
public:
#pragma option push -w-inl
/* TCustomForm.Create */ inline __fastcall virtual TfrmListViewEditor(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmListViewEditor(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmListViewEditor(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TfrmListViewEditor(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Listview */
using namespace Listview;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // ListView
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -