COPYRIGHT micro dynamics GmbH
AUTHOR(S) Michael Frank
UPDATE 11.01.2002
COMPILER Delphi 5
PLATFORM Windows 95/98/Me/NT4/2000/XP
DESCRIPTION Windows XP Visual Styles API
-----------------------------------------------------------------------------
Revision History: Original Version 12.01
.
11.01.2002 Version 1.10
29.12.2001 Version 1.00
-----------------------------------------------------------------------------
}
unit mdTHEMES;
//----------------------------------------------------------------------------
// "Button" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Clock" Parts and States
//----------------------------------------------------------------------------
{$EXTERNALSYM CLP_TIME}
CLP_TIME = 1;
{$EXTERNALSYM CLS_NORMAL}
CLS_NORMAL = 1;
//----------------------------------------------------------------------------
// "ComboBox" Parts & States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Edit" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "ExplorerBar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Header" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "ListView" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Menu" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "MenuBand" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Page" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Progress" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Rebar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Scrollbar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Spin" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "StartPanel" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Status" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Tab" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "TaskBand" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "TaskBar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Toolbar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Tooltip" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Trackbar" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "TrayNotify" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "TreeView" Parts and States
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
// "Window" Parts and States
//----------------------------------------------------------------------------
type
{$EXTERNALSYM THEMESIZE}
THEMESIZE = (
TS_MIN, // minimum size
TS_TRUE, // size without stretching
TS_DRAW); // size that theme manager will use to draw part
TThemeSize = THEMESIZE;
var
GetThemePartSize : function (
hTheme : HTHEME;
hdc : HDC;
iPartId : integer;
iStateId : integer;
prc : PRect;
eSize : TThemeSize;
var psz : TSize) : HResult stdcall;
if (hThemeAPI <> 0) then
begin
@OpenThemeData:= GetProcAddress(hThemeAPI,'OpenThemeData');
@CloseThemeData:= GetProcAddress(hThemeAPI,'CloseThemeData');
@DrawThemeBackground:= GetProcAddress(hThemeAPI,'DrawThemeBackground');
@DrawThemeText:= GetProcAddress(hThemeAPI,'DrawThemeText');