advappstyler.hpp

来自「一个非常棒的控件.做商业软件特别适用.里面的控件涉及面非常的广,有兴趣的话可以下」· HPP 代码 · 共 145 行

HPP
145
字号
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Advappstyler.pas' rev: 10.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);
	
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 = 0x3;
static const Shortint BLD_VER = 0x0;
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 + =
减小字号Ctrl + -
显示快捷键?