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

📄 advappstyler.hpp

📁 TMS component pack v4.2 for delphi
💻 HPP
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Advappstyler.pas' rev: 11.00

#ifndef AdvappstylerHPP
#define AdvappstylerHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Advstyleif.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit

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

namespace Advappstyler
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TThemeNotifierWindow;
class PASCALIMPLEMENTATION TThemeNotifierWindow : public Controls::TWinControl 
{
	typedef Controls::TWinControl inherited;
	
private:
	Classes::TNotifyEvent FOnThemeChange;
	
protected:
	virtual void __fastcall WndProc(Messages::TMessage &Msg);
	
__published:
	__property Classes::TNotifyEvent OnThemeChange = {read=FOnThemeChange, write=FOnThemeChange};
public:
	#pragma option push -w-inl
	/* TWinControl.Create */ inline __fastcall virtual TThemeNotifierWindow(Classes::TComponent* AOwner) : Controls::TWinControl(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TThemeNotifierWindow(HWND ParentWindow) : Controls::TWinControl(ParentWindow) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TWinControl.Destroy */ inline __fastcall virtual ~TThemeNotifierWindow(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvAppStyler;
class DELPHICLASS TAdvFormStyler;
class PASCALIMPLEMENTATION TAdvAppStyler : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
public:
	Classes::TList* FForms;
	Advstyleif::TTMSStyle FStyle;
	bool FAutoThemeAdapt;
	TThemeNotifierWindow* FNotifier;
	Classes::TNotifyEvent FOnChange;
	
private:
	void __fastcall SetStyle(const Advstyleif::TTMSStyle Value);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	void __fastcall ThemeChanged(System::TObject* Sender);
	void __fastcall SetAutoThemeAdapt(const bool Value);
	
protected:
	virtual void __fastcall Loaded(void);
	
public:
	__fastcall virtual TAdvAppStyler(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvAppStyler(void);
	void __fastcall RegisterFormStyler(TAdvFormStyler* AFormStyler);
	void __fastcall UnRegisterFormStyler(TAdvFormStyler* AFormStyler);
	int __fastcall GetVersionNr(void);
	
__published:
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=SetAutoThemeAdapt, nodefault};
	__property Advstyleif::TTMSStyle Style = {read=FStyle, write=SetStyle, default=8};
	__property AnsiString Version = {read=GetVersion, write=SetVersion, stored=false};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
};


class PASCALIMPLEMENTATION TAdvFormStyler : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	Advstyleif::TTMSStyle FStyle;
	TAdvAppStyler* FAppStyle;
	Classes::TNotifyEvent FOnChange;
	bool FAutoThemeAdapt;
	TThemeNotifierWindow* FNotifier;
	void __fastcall SetStyle(const Advstyleif::TTMSStyle Value);
	void __fastcall SetAppStyle(const TAdvAppStyler* Value);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	void __fastcall ThemeChanged(System::TObject* Sender);
	void __fastcall SetAutoThemeAdapt(const bool Value);
	
protected:
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
	
public:
	virtual void __fastcall Loaded(void);
	__fastcall virtual TAdvFormStyler(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvFormStyler(void);
	void __fastcall ApplyStyle(void);
	void __fastcall ApplyStyleToForm(Forms::TCustomForm* Form, Advstyleif::TTMSStyle AStyle);
	void __fastcall ApplyStyleToFrame(Forms::TCustomFrame* Frame, Advstyleif::TTMSStyle AStyle);
	int __fastcall GetVersionNr(void);
	
__published:
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=SetAutoThemeAdapt, nodefault};
	__property Advstyleif::TTMSStyle Style = {read=FStyle, write=SetStyle, default=8};
	__property TAdvAppStyler* AppStyle = {read=FAppStyle, write=SetAppStyle};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property AnsiString Version = {read=GetVersion, write=SetVersion, stored=false};
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x1;
static const Shortint REL_VER = 0x4;
static const Shortint BLD_VER = 0x1;
extern PACKAGE void __fastcall Register(void);

}	/* namespace Advappstyler */
using namespace Advappstyler;
#pragma pack(pop)
#pragma option pop

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

⌨️ 快捷键说明

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