📄 regions.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'regions.pas' rev: 6.00
#ifndef regionsHPP
#define regionsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <eputils.hpp> // Pascal unit
#include <CommCtrl.hpp> // Pascal unit
#include <Buttons.hpp> // Pascal unit
#include <ExtCtrls.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 Regions
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TepRegionType;
class PASCALIMPLEMENTATION TepRegionType : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
public:
HRGN FRegion;
Classes::TComponent* Owner;
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TepRegionType(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TepRegionType(void) : Classes::TPersistent() { }
#pragma option pop
};
class DELPHICLASS TepRegionForm;
class PASCALIMPLEMENTATION TepRegionForm : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Graphics::TPicture* FPicture;
TepRegionType* FRegion;
HRGN FDrawRegion;
HRGN FInnerRegion;
HRGN FOuterRegion;
HRGN FTitleRegion;
bool FDraggable;
bool FIsDragging;
int FoldX;
int FoldY;
int FTitleHeight;
Graphics::TBitmap* FMask;
bool FShowTitle;
bool FShowBevel;
void *FPrevWndProc;
void *FObjectInst;
void __fastcall WndProc1(Messages::TMessage &Msg);
void __fastcall SetMask(Graphics::TBitmap* Value);
void __fastcall SetPicture(Graphics::TPicture* Value);
void __fastcall SetShowTitle(bool Value);
void __fastcall SetShowBevel(bool Value);
protected:
virtual void __fastcall ReadData(Classes::TStream* Reader);
virtual void __fastcall WriteData(Classes::TStream* Writer);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall SetParent(Controls::TWinControl* Value);
public:
__fastcall virtual TepRegionForm(Classes::TComponent* AOwner);
__fastcall virtual ~TepRegionForm(void);
virtual void __fastcall Loaded(void);
virtual void __fastcall Paint(void);
void __fastcall NewRegion(int Size, Windows::PRgnData RgnData);
__property TepRegionType* Region = {read=FRegion, write=FRegion};
__published:
__property Align = {default=0};
__property bool Draggable = {read=FDraggable, write=FDraggable, nodefault};
__property Graphics::TBitmap* Mask = {read=FMask, write=SetMask};
__property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture};
__property bool ShowTitle = {read=FShowTitle, write=SetShowTitle, nodefault};
__property bool ShowBevel = {read=FShowBevel, write=SetShowBevel, nodefault};
__property int TitleHeight = {read=FTitleHeight, write=FTitleHeight, nodefault};
__property Visible = {default=1};
__property OnClick ;
__property OnDblClick ;
};
class DELPHICLASS TepRegionGraphicControl;
class PASCALIMPLEMENTATION TepRegionGraphicControl : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TepRegionType* FRegion;
Graphics::TBitmap* FMask;
void __fastcall SetMask(Graphics::TBitmap* Value);
protected:
virtual void __fastcall ReadData(Classes::TStream* Reader);
virtual void __fastcall WriteData(Classes::TStream* Writer);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
public:
__fastcall virtual TepRegionGraphicControl(Classes::TComponent* AOwner);
__fastcall virtual ~TepRegionGraphicControl(void);
virtual void __fastcall Paint(void);
virtual void __fastcall NewRegion(int Size, Windows::PRgnData RgnData);
__property TepRegionType* Region = {read=FRegion, write=FRegion};
__published:
__property Align = {default=0};
__property Color = {default=-2147483643};
__property Graphics::TBitmap* Mask = {read=FMask, write=SetMask};
__property Visible = {default=1};
__property OnClick ;
__property OnDblClick ;
};
class DELPHICLASS TepRegionSpeedButton;
class PASCALIMPLEMENTATION TepRegionSpeedButton : public TepRegionGraphicControl
{
typedef TepRegionGraphicControl inherited;
private:
int FGroupIndex;
void *FGlyph;
bool FDown;
bool FDragging;
bool FAllowAllUp;
Buttons::TButtonLayout FLayout;
int FSpacing;
int FMargin;
bool FFlat;
bool FMouseInControl;
HRGN FInnerRegion;
HRGN FOuterRegion;
int FGlyphPosX;
int FGlyphPosY;
void __fastcall SetGlyphPosX(int Value);
void __fastcall SetGlyphPosY(int Value);
void __fastcall GlyphChanged(System::TObject* Sender);
void __fastcall UpdateExclusive(void);
Graphics::TBitmap* __fastcall GetGlyph(void);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
Buttons::TNumGlyphs __fastcall GetNumGlyphs(void);
void __fastcall SetNumGlyphs(Buttons::TNumGlyphs Value);
void __fastcall SetDown(bool Value);
void __fastcall SetFlat(bool Value);
void __fastcall SetAllowAllUp(bool Value);
void __fastcall SetGroupIndex(int Value);
void __fastcall SetLayout(Buttons::TButtonLayout Value);
void __fastcall SetSpacing(int Value);
void __fastcall SetMargin(int Value);
void __fastcall UpdateTracking(void);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMButtonPressed(Messages::TMessage &Message);
MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
protected:
Buttons::TButtonState FState;
DYNAMIC HPALETTE __fastcall GetPalette(void);
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TepRegionSpeedButton(Classes::TComponent* AOwner);
__fastcall virtual ~TepRegionSpeedButton(void);
DYNAMIC void __fastcall Click(void);
virtual void __fastcall NewRegion(int Size, Windows::PRgnData RgnData);
__published:
__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
__property bool Down = {read=FDown, write=SetDown, default=0};
__property Caption ;
__property Enabled = {default=1};
__property bool Flat = {read=FFlat, write=SetFlat, default=0};
__property Font ;
__property Graphics::TBitmap* Glyph = {read=GetGlyph, write=SetGlyph};
__property int GlyphPosX = {read=FGlyphPosX, write=SetGlyphPosX, nodefault};
__property int GlyphPosY = {read=FGlyphPosY, write=SetGlyphPosY, nodefault};
__property Buttons::TButtonLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property Buttons::TNumGlyphs NumGlyphs = {read=GetNumGlyphs, write=SetNumGlyphs, default=1};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property ShowHint ;
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property Visible = {default=1};
__property OnClick ;
__property OnDblClick ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall DrawRegionEdge(Graphics::TCanvas* Canvas, HRGN FDrawRegion, HRGN FInnerRegion, HRGN FOuterRegion, bool isDown, bool Clear);
extern PACKAGE void __fastcall DrawRegionEdgeStd(Graphics::TCanvas* Canvas, HRGN FDrawRegion, HRGN FInnerRegion, HRGN FOuterRegion, bool isDown, bool Clear);
} /* namespace Regions */
using namespace Regions;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // regions
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -