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

📄 mediabtn.hpp

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

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

#ifndef mediabtnHPP
#define mediabtnHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <MediaLib.hpp>	// Pascal unit
#include <wavctrl.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Mediabtn
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TBtnState { abNone, abPush, abUnPush };
#pragma option pop

class DELPHICLASS TepMediaButton;
class PASCALIMPLEMENTATION TepMediaButton : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	bool FActive;
	TBtnState FState;
	Controls::TModalResult FModalResult;
	Classes::TNotifyEvent FOnClick;
	bool FPress;
	Graphics::TColor FInnerColor;
	Graphics::TColor FOuterColor;
	Graphics::TColor FActiveColor;
	int FBevelWidth;
	Medialib::TepBitmap* FWallpaper;
	Wavctrl::TepWavePlayer* FClickSound;
	Wavctrl::TepWavePlayer* FActiveSound;
	void __fastcall SetWallpaper(Medialib::TepBitmap* Value);
	void __fastcall SetInner(Graphics::TColor Value);
	void __fastcall SetOuter(Graphics::TColor Value);
	HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Msg);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Msg);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Msg);
	MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	HIDESBASE void __fastcall SetBevelWidth(int Value);
	bool __fastcall PointInComponent(int X, int Y);
	void __fastcall SetModalResult(Controls::TModalResult Value);
	
protected:
	virtual void __fastcall Press(bool Down);
	virtual void __fastcall Active(bool A);
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall Click(void);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	
public:
	__fastcall virtual TepMediaButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepMediaButton(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
__published:
	__property Action ;
	__property Caption ;
	__property Enabled  = {default=1};
	__property Font ;
	__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
	__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
	__property Graphics::TColor InnerColor = {read=FInnerColor, write=SetInner, nodefault};
	__property Graphics::TColor ActiveColor = {read=FActiveColor, write=FActiveColor, nodefault};
	__property Graphics::TColor OuterColor = {read=FOuterColor, write=SetOuter, nodefault};
	__property int BevelWidth = {read=FBevelWidth, write=SetBevelWidth, nodefault};
	__property Medialib::TepBitmap* Wallpaper = {read=FWallpaper, write=SetWallpaper};
	__property Controls::TModalResult ModalResult = {read=FModalResult, write=SetModalResult, nodefault};
	__property Visible  = {default=1};
	__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TepMediaButton(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TepCustomBitmapButton;
class PASCALIMPLEMENTATION TepCustomBitmapButton : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	bool FActive;
	TBtnState FState;
	Controls::TModalResult FModalResult;
	Classes::TNotifyEvent FOnClick;
	bool FPress;
	Wavctrl::TepWavePlayer* FClickSound;
	Wavctrl::TepWavePlayer* FActiveSound;
	Graphics::TBitmap* FBmpActive;
	Graphics::TBitmap* FBmpNormal;
	Graphics::TBitmap* FBmpDown;
	bool FTransparent;
	Graphics::TColor FBackColor;
	void __fastcall SetBackColor(Graphics::TColor Value);
	void __fastcall SetBmpActive(Graphics::TBitmap* Value);
	void __fastcall SetBmpDown(Graphics::TBitmap* Value);
	void __fastcall SetBmpNormal(Graphics::TBitmap* Value);
	void __fastcall SetTransparent(bool Value);
	HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Msg);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Msg);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Msg);
	bool __fastcall PointInComponent(int X, int Y);
	void __fastcall SetModalResult(Controls::TModalResult Value);
	
protected:
	virtual void __fastcall Press(bool Down);
	virtual void __fastcall Active(bool A);
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall Click(void);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall DrawBitmaps(void);
	
public:
	__fastcall virtual TepCustomBitmapButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepCustomBitmapButton(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	__property Graphics::TBitmap* BmpActive = {read=FBmpActive, write=SetBmpActive};
	__property Graphics::TBitmap* BmpNormal = {read=FBmpNormal, write=SetBmpNormal};
	__property Graphics::TBitmap* BmpDown = {read=FBmpDown, write=SetBmpDown};
	__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
	__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
	
__published:
	__property Action ;
	__property Caption ;
	__property Enabled  = {default=1};
	__property Font ;
	__property Visible  = {default=1};
	__property Graphics::TColor BackColor = {read=FBackColor, write=SetBackColor, nodefault};
	__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
	__property Controls::TModalResult ModalResult = {read=FModalResult, write=SetModalResult, nodefault};
	__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TepCustomBitmapButton(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TepBitmapButton;
class PASCALIMPLEMENTATION TepBitmapButton : public TepCustomBitmapButton 
{
	typedef TepCustomBitmapButton inherited;
	
__published:
	__property BmpActive ;
	__property BmpNormal ;
	__property BmpDown ;
	__property ClickSound ;
	__property ActiveSound ;
	__property TabStop  = {default=0};
	__property TabOrder  = {default=-1};
public:
	#pragma option push -w-inl
	/* TepCustomBitmapButton.Create */ inline __fastcall virtual TepBitmapButton(Classes::TComponent* AOwner) : TepCustomBitmapButton(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TepCustomBitmapButton.Destroy */ inline __fastcall virtual ~TepBitmapButton(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TepBitmapButton(HWND ParentWindow) : TepCustomBitmapButton(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TepRealTimeButton;
class PASCALIMPLEMENTATION TepRealTimeButton : public TepCustomBitmapButton 
{
	typedef TepCustomBitmapButton inherited;
	
private:
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	
protected:
	virtual Graphics::TBitmap* __fastcall CreateOneBitmap(TBtnState AState, bool AActive);
	virtual void __fastcall DrawBitmaps(void);
	
public:
	__fastcall virtual TepRealTimeButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepRealTimeButton(void);
	virtual void __fastcall Loaded(void);
	void __fastcall CreateBitmaps(void);
	
__published:
	__property ClickSound ;
	__property ActiveSound ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TepRealTimeButton(HWND ParentWindow) : TepCustomBitmapButton(ParentWindow) { }
	#pragma option pop
	

⌨️ 快捷键说明

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