⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stctrls.hpp

📁 漏洞扫描系列中HB Network Scanner 测试用练习代码
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

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

#ifndef StCtrlsHPP
#define StCtrlsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <BMPUtils.hpp>	// Pascal unit
#include <GrUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <CommCtrl.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Stctrls
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TepStatusBar;
class PASCALIMPLEMENTATION TepStatusBar : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	Classes::TNotifyEvent FOnResize;
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	
protected:
	virtual void __fastcall AlignControls(Controls::TControl* AControl, Types::TRect &R);
	
public:
	__fastcall virtual TepStatusBar(Classes::TComponent* AOwner);
	virtual void __fastcall Paint(void);
	
__published:
	__property Align  = {default=2};
	__property Color  = {default=-2147483643};
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
	__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
public:
	#pragma option push -w-inl
	/* TCustomControl.Destroy */ inline __fastcall virtual ~TepStatusBar(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TepStatusBar(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TFrameKind { fkLowered, fkRaised, fkNone };
#pragma option pop

#pragma option push -b-
enum TGlyphPos { gLeft, gRight };
#pragma option pop

typedef Shortint TNumGlyphs;

class DELPHICLASS TepStatusPanel;
class PASCALIMPLEMENTATION TepStatusPanel : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	Graphics::TColor FPanelColor;
	Byte FFrameOffset;
	TGlyphPos FGlyphPos;
	TNumGlyphs FNumGlyphs;
	Graphics::TColor FFrameInnerColor;
	Graphics::TColor FFrameOuterColor;
	TFrameKind FFrameKind;
	AnsiString FText;
	#pragma pack(push, 1)
	Types::TRect FTextRect;
	#pragma pack(pop)
	
	Graphics::TBitmap* FGlyph;
	int GlyphX;
	int GlyphY;
	int TextX;
	int TextY;
	Byte FSpacing;
	void __fastcall SetPanelColor(Graphics::TColor Value);
	void __fastcall SetFrameOffset(Byte Value);
	void __fastcall SetGlyphPos(TGlyphPos Value);
	void __fastcall SetSpacing(Byte Value);
	void __fastcall SetNumGlyphs(TNumGlyphs Value);
	void __fastcall SetGlyph(Graphics::TBitmap* Value);
	void __fastcall CalcTextRect(void);
	HIDESBASE void __fastcall SetText(AnsiString Value);
	void __fastcall SetFrameKind(TFrameKind Value);
	void __fastcall SetFrameInnerColor(Graphics::TColor Value);
	void __fastcall SetFrameOuterColor(Graphics::TColor Value);
	void __fastcall PaintText(void);
	void __fastcall PaintPGlyph(void);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TepStatusPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TepStatusPanel(void);
	
__published:
	__property Byte FrameOffset = {read=FFrameOffset, write=SetFrameOffset, nodefault};
	__property Graphics::TColor PanelColor = {read=FPanelColor, write=SetPanelColor, nodefault};
	__property TGlyphPos GlyphPos = {read=FGlyphPos, write=SetGlyphPos, nodefault};
	__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
	__property TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
	__property Byte Spacing = {read=FSpacing, write=SetSpacing, nodefault};
	__property AnsiString Text = {read=FText, write=SetText};
	__property TFrameKind FrameKind = {read=FFrameKind, write=SetFrameKind, nodefault};
	__property Graphics::TColor FrameInnerColor = {read=FFrameInnerColor, write=SetFrameInnerColor, nodefault};
	__property Graphics::TColor FrameOuterColor = {read=FFrameOuterColor, write=SetFrameOuterColor, nodefault};
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property Font ;
	__property ParentColor  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
};


#pragma option push -b-
enum TProgressKind { pkHorizontalBar, pkVerticalBar };
#pragma option pop

#pragma option push -b-
enum TBarKind { bkBar, bk3DBar, bkGlyphBar };
#pragma option pop

class DELPHICLASS TepStatusProgressPanel;
class PASCALIMPLEMENTATION TepStatusProgressPanel : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	Graphics::TBitmap* FBarGlyph;
	TBarKind FBarKind;
	int FCurValue;
	int FMinValue;
	int FMaxValue;
	bool FShowProgressInfo;
	Graphics::TColor FBarTextColor;
	Graphics::TColor FBarColor;
	Graphics::TColor FPanelColor;
	Byte FFrameOffset;
	Graphics::TColor FFrameInnerColor;
	Graphics::TColor FFrameOuterColor;
	TFrameKind FFrameKind;
	AnsiString FText;
	int PWidth;
	int PHeight;
	int Persent;
	int PanelWidth;
	int PanelHeight;
	TProgressKind FKind;
	void __fastcall SetBarGlyph(Graphics::TBitmap* Value);
	void __fastcall SetBarKind(TBarKind Value);
	void __fastcall SetProgressKind(TProgressKind Value);
	void __fastcall SetBarTextColor(Graphics::TColor Value);
	void __fastcall SetBarColor(Graphics::TColor Value);
	void __fastcall SetPanelColor(Graphics::TColor Value);
	void __fastcall SetFrameOffset(Byte Value);
	HIDESBASE void __fastcall SetText(AnsiString Value);
	void __fastcall SetFrameKind(TFrameKind Value);
	void __fastcall SetFrameInnerColor(Graphics::TColor Value);
	void __fastcall SetFrameOuterColor(Graphics::TColor Value);
	void __fastcall SetMinValue(int Value);
	void __fastcall SetMaxValue(int Value);
	void __fastcall SetProgress(int Value);
	void __fastcall SetShowProgressInfo(bool Value);
	void __fastcall GetPercent(void);
	void __fastcall PaintProgressBar(void);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TepStatusProgressPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TepStatusProgressPanel(void);
	
__published:
	__property Graphics::TBitmap* BarGlyph = {read=FBarGlyph, write=SetBarGlyph};
	__property TBarKind BarKind = {read=FBarKind, write=SetBarKind, nodefault};
	__property TProgressKind Kind = {read=FKind, write=SetProgressKind, nodefault};
	__property int MinValue = {read=FMinValue, write=SetMinValue, default=0};
	__property int MaxValue = {read=FMaxValue, write=SetMaxValue, default=100};
	__property int Progress = {read=FCurValue, write=SetProgress, nodefault};
	__property bool ShowProgressInfo = {read=FShowProgressInfo, write=SetShowProgressInfo, default=1};
	__property Graphics::TColor BarTextColor = {read=FBarTextColor, write=SetBarTextColor, nodefault};
	__property Graphics::TColor BarColor = {read=FBarColor, write=SetBarColor, nodefault};
	__property Byte FrameOffset = {read=FFrameOffset, write=SetFrameOffset, nodefault};
	__property Graphics::TColor PanelColor = {read=FPanelColor, write=SetPanelColor, nodefault};
	__property AnsiString Text = {read=FText, write=SetText};
	__property TFrameKind FrameKind = {read=FFrameKind, write=SetFrameKind, nodefault};
	__property Graphics::TColor FrameInnerColor = {read=FFrameInnerColor, write=SetFrameInnerColor, nodefault};
	__property Graphics::TColor FrameOuterColor = {read=FFrameOuterColor, write=SetFrameOuterColor, nodefault};
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property Font ;
	__property ParentColor  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
};


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

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

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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -