📄 treeview.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'TreeView.pas' rev: 6.00
#ifndef TreeViewHPP
#define TreeViewHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ImgList.hpp> // Pascal unit
#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 Treeview
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TTreePropertyEditor;
class PASCALIMPLEMENTATION TTreePropertyEditor : public Propedit::TPropertyEditor
{
typedef Propedit::TPropertyEditor inherited;
private:
Comctrls::TTreeNodes* __fastcall GetTreeNodes(void);
public:
virtual bool __fastcall Execute(void);
__property Comctrls::TTreeNodes* TreeNodes = {read=GetTreeNodes};
public:
#pragma option push -w-inl
/* TPropertyEditor.Create */ inline __fastcall virtual TTreePropertyEditor(Proplist::TProperty* AProp) : Propedit::TPropertyEditor(AProp) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TTreePropertyEditor(void) { }
#pragma option pop
};
#pragma option push -b-
enum TTargetPosition { tpNone, tpTop, tpItem, tpBottom };
#pragma option pop
class DELPHICLASS TPublishedTreeNode;
class PASCALIMPLEMENTATION TPublishedTreeNode : public Comctrls::TTreeNode
{
typedef Comctrls::TTreeNode inherited;
__published:
__property Text ;
__property ImageIndex ;
__property StateIndex ;
__property SelectedIndex ;
public:
#pragma option push -w-inl
/* TTreeNode.Create */ inline __fastcall TPublishedTreeNode(Comctrls::TTreeNodes* AOwner) : Comctrls::TTreeNode(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TTreeNode.Destroy */ inline __fastcall virtual ~TPublishedTreeNode(void) { }
#pragma option pop
};
class DELPHICLASS TfrmTreeEditor;
class PASCALIMPLEMENTATION TfrmTreeEditor : public Forms::TForm
{
typedef Forms::TForm inherited;
__published:
Extctrls::TSplitter* splMain;
Comctrls::TTreeView* trvItems;
Extctrls::TPanel* pnlButtons;
Stdctrls::TButton* btnNewItem;
Stdctrls::TButton* btnNewSubitem;
Stdctrls::TButton* btnDeleteItem;
Extctrls::TPanel* pnlSysButtons;
Stdctrls::TButton* btnOK;
Stdctrls::TButton* btnCancel;
Compinsp::TComponentInspector* cinItemProperties;
void __fastcall btnAddItemClick(System::TObject* Sender);
void __fastcall trvItemsDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
void __fastcall trvItemsDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
void __fastcall FormActivate(System::TObject* Sender);
void __fastcall trvItemsChange(System::TObject* Sender, Comctrls::TTreeNode* Node);
void __fastcall trvItemsStartDrag(System::TObject* Sender, Controls::TDragObject* &DragObject);
void __fastcall FormDestroy(System::TObject* Sender);
void __fastcall FormCreate(System::TObject* Sender);
void __fastcall btnDeleteItemClick(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);
private:
Graphics::TCanvas* ListViewCanvas;
TTreePropertyEditor* FEditor;
TTargetPosition TargetPosition;
Comctrls::TTreeNode* DragNode;
TPublishedTreeNode* FPublishedTreeNode;
void __fastcall DrawTargetIndicator(void);
void __fastcall CopyProps(Comctrls::TTreeNode* Src, Comctrls::TTreeNode* Trg);
HIDESBASE MESSAGE void __fastcall WMGetMinMaxInfo(Messages::TMessage &Msg);
public:
#pragma option push -w-inl
/* TCustomForm.Create */ inline __fastcall virtual TfrmTreeEditor(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmTreeEditor(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
#pragma option pop
#pragma option push -w-inl
/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmTreeEditor(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TfrmTreeEditor(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Treeview */
using namespace Treeview;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // TreeView
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -