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

📄 advmenuutil.hpp

📁 Delphi的Office 2007风格界面控件
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

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

#ifndef AdvMenuUtilHPP
#define AdvMenuUtilHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Types.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Advmenuutil
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS EInvalidPropertyIndex;
class PASCALIMPLEMENTATION EInvalidPropertyIndex : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall EInvalidPropertyIndex(const AnsiString Msg) : Sysutils::Exception(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EInvalidPropertyIndex(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EInvalidPropertyIndex(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EInvalidPropertyIndex(int Ident, const System::TVarRec * Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EInvalidPropertyIndex(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EInvalidPropertyIndex(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EInvalidPropertyIndex(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EInvalidPropertyIndex(System::PResStringRec ResStringRec, const System::TVarRec * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EInvalidPropertyIndex(void) { }
	#pragma option pop
	
};


class DELPHICLASS ERequireOwner;
class PASCALIMPLEMENTATION ERequireOwner : public Sysutils::Exception 
{
	typedef Sysutils::Exception inherited;
	
public:
	#pragma option push -w-inl
	/* Exception.Create */ inline __fastcall ERequireOwner(const AnsiString Msg) : Sysutils::Exception(Msg) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall ERequireOwner(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall ERequireOwner(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall ERequireOwner(int Ident, const System::TVarRec * Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall ERequireOwner(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall ERequireOwner(const AnsiString Msg, const System::TVarRec * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall ERequireOwner(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall ERequireOwner(System::PResStringRec ResStringRec, const System::TVarRec * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~ERequireOwner(void) { }
	#pragma option pop
	
};


#pragma pack(push, 1)
struct TColorQuad
{
	Byte Red;
	Byte Green;
	Byte Blue;
	Byte Alpha;
} ;
#pragma pack(pop)

#pragma pack(push, 1)
struct TSmallColorQuad
{
	Byte Red;
	Byte Green;
	Byte Blue;
} ;
#pragma pack(pop)

#pragma pack(push, 4)
struct TLargeColorQuad
{
	int Red;
	int Green;
	int Blue;
	int Alpha;
} ;
#pragma pack(pop)

#pragma pack(push, 1)
struct T24bitScanLineElement
{
	Byte Blue;
	Byte Green;
	Byte Red;
} ;
#pragma pack(pop)

#pragma pack(push, 1)
struct T32bitScanLineElement
{
	Byte Blue;
	Byte Green;
	Byte Red;
	Byte Alpha;
} ;
#pragma pack(pop)

typedef T24bitScanLineElement T24bitQuadScanLine[21846];

typedef T24bitScanLineElement *P24bitQuadScanLine;

typedef T32bitScanLineElement T32bitQuadScanLine[21846];

typedef T32bitScanLineElement *P32bitQuadScanLine;

typedef Byte TOpacity;

typedef BOOL __stdcall (*TSetLayeredWindowAttributes)(unsigned hWnd, unsigned crKey, Byte bAlpha, unsigned dwFlags);

typedef BOOL __stdcall (*TUpdateLayeredWindow)(unsigned hWnd, HDC hdcDst, Types::PPoint pptDst, Types::PSize psize, HDC hdcSrc, Types::PPoint pptSrc, unsigned crKey, Windows::PBlendFunction pblend, unsigned dwFlags);

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE System::ResourceString _SInvalidPropertyIndexAt;
#define Advmenuutil_SInvalidPropertyIndexAt System::LoadResourceString(&Advmenuutil::_SInvalidPropertyIndexAt)
extern PACKAGE System::ResourceString _SInvalidPropertyIndex;
#define Advmenuutil_SInvalidPropertyIndex System::LoadResourceString(&Advmenuutil::_SInvalidPropertyIndex)
extern PACKAGE System::ResourceString _SRequireOwner;
#define Advmenuutil_SRequireOwner System::LoadResourceString(&Advmenuutil::_SRequireOwner)
static const Shortint LWA_ALPHA = 0x2;
static const Shortint LWA_COLORKEY = 0x1;
static const Shortint ULW_COLORKEY = 0x1;
static const Shortint ULW_ALPHA = 0x2;
static const Shortint ULW_OPAQUE = 0x4;
static const Shortint AC_SRC_ALPHA = 0x1;
static const int WS_EX_LAYERED = 0x80000;
extern PACKAGE Types::TRect NilRect;
extern PACKAGE TUpdateLayeredWindow UpdateLayeredWindow;
extern PACKAGE TSetLayeredWindowAttributes SetLayeredWindowAttributes;
extern PACKAGE HFONT __fastcall CreateRotatedFont(Graphics::TFont* F, const int Angle);
extern PACKAGE bool __fastcall RectInRect(const Types::TRect &Source, const Types::TRect &Target);
extern PACKAGE int __fastcall RectWidth(const Types::TRect &ARect);
extern PACKAGE int __fastcall RectHeight(const Types::TRect &ARect);
extern PACKAGE Types::TPoint __fastcall CenterPoint(const Types::TRect &Rect);
extern PACKAGE void __fastcall CenterRect(Types::TRect &Rect, const int Width, const int Height);
extern PACKAGE Types::TRect __fastcall BitmapRect(const Graphics::TBitmap* ABitmap);
extern PACKAGE void __fastcall ColorToRGBVal(Graphics::TColor AColor, int &R, int &G, int &B);
extern PACKAGE T24bitScanLineElement __fastcall ColorTo24bitScanLineElement(Graphics::TColor Color);
extern PACKAGE T32bitScanLineElement __fastcall ColorTo32bitScanLineElement(Graphics::TColor Color);
extern PACKAGE Graphics::TColor __fastcall RGB(Byte Red, Byte Green, Byte Blue, Byte Alpha = (Byte)(0x0));
extern PACKAGE int __fastcall Min(int Value1, int Value2);
extern PACKAGE int __fastcall Max(int Value1, int Value2);
extern PACKAGE bool __fastcall SupportsLayeredWindows(void);
extern PACKAGE bool __fastcall SetWindowLayered(unsigned Handle, bool Value);

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

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

⌨️ 快捷键说明

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