8#if !defined(OWL_THEME_H)
12#if defined(BI_HAS_PRAGMA_ONCE)
69 TModuleProc8 <HRESULT, HTHEME, HDC, int, int, const RECT*, UINT, UINT, RECT*>
DrawThemeEdge;
70 TModuleProc7 <HRESULT, HTHEME, HDC, int, int, const RECT*, HIMAGELIST, int>
DrawThemeIcon;
71 TModuleProc9 <HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, DWORD, const RECT*>
DrawThemeText;
79 TModuleProc6 <HRESULT, HTHEME, HDC, int, int, int, LOGFONT*>
GetThemeFont;
80 TModuleProc5 <HRESULT, HTHEME, int, int, int, int*>
GetThemeInt;
82 TModuleProc7 <HRESULT, HTHEME, HDC, int, int, int, RECT*, MARGINS*>
GetThemeMargins;
84 TModuleProc7 <HRESULT, HTHEME, HDC, int, int, RECT*, THEMESIZE, SIZE*>
GetThemePartSize;
89 TModuleProc9 <HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, const RECT*, RECT*>
GetThemeTextExtent;
106 TTheme(HWND, LPCWSTR cls);
112 operator HTHEME() {
return m_handle;}
124 TThemePart(HWND, LPCWSTR cls,
int part,
int state);
135 void DrawBackground(HDC,
const TRect& dest);
136 void DrawBackground(HDC,
const TRect& dest,
const TRect& clip);
137 bool IsBackgroundPartiallyTransparent();
139 void DrawTransparentBackground(HWND control, HDC,
const TRect& dest);
TRect is a mathematical class derived from tagRect.
TTheme(HWND, LPCWSTR cls)
Constructs a theme handler.
TModuleProc6< HRESULT, HTHEME, HDC, int, int, int, LOGFONT * > GetThemeFont
TModuleProc2< BOOL, HTHEME, int > GetThemeSysBool
TModuleProc2< HTHEME, HWND, LPCWSTR > OpenThemeData
TModuleProc2< int, HTHEME, int > GetThemeSysSize
TModuleProc6< HRESULT, HTHEME, int, int, int, LPWSTR, int > GetThemeFilename
TModuleProc2< HRESULT, HWND, DWORD > EnableThemeDialogTexture
TModuleProc5< HRESULT, HTHEME, int, int, int, int * > GetThemeEnumValue
TModuleProc3< BOOL, HTHEME, int, int > IsThemePartDefined
TModuleProc5< HRESULT, HTHEME, int, int, int, INTLIST * > GetThemeIntList
TModuleProc4< HRESULT, HTHEME, int, LPWSTR, int > GetThemeSysString
TModuleProc9< HRESULT, HTHEME, HDC, int, int, DWORD, const RECT *, HRGN, POINT, WORD * > HitTestThemeBackground
TModuleProc5< HRESULT, HTHEME, HDC, int, int, TEXTMETRIC * > GetThemeTextMetrics
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, const RECT * > DrawThemeBackground
TModuleProc1< HRESULT, BOOL > EnableTheming
TModuleProc2< HBRUSH, HTHEME, int > GetThemeSysColorBrush
TModuleProc7< HRESULT, HTHEME, HDC, int, int, RECT *, THEMESIZE, SIZE * > GetThemePartSize
TModuleProc6< HRESULT, HTHEME, int, int, int, LPWSTR, int > GetThemeString
TModuleProc5< HRESULT, HTHEME, int, int, int, PROPERTYORIGIN * > GetThemePropertyOrigin
TModuleProc7< HRESULT, HTHEME, HDC, int, int, const RECT *, HIMAGELIST, int > DrawThemeIcon
TModuleProc3< HRESULT, HTHEME, int, int * > GetThemeSysInt
TModuleProc3< HRESULT, HWND, LPCWSTR, LPCWSTR > SetWindowTheme
TModuleProc0< BOOL > IsThemeActive
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, RECT * > GetThemeBackgroundContentRect
TModuleProc5< HRESULT, HTHEME, int, int, int, RECT * > GetThemeRect
TModuleProc6< HRESULT, LPWSTR, int, LPWSTR, int, LPWSTR, int > GetCurrentThemeName
TModuleProcV1< DWORD > SetThemeAppProperties
TModuleProc0< DWORD > GetThemeAppProperties
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, HRGN * > GetThemeBackgroundRegion
TModuleProc9< HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, DWORD, const RECT * > DrawThemeText
TModuleProc9< HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, const RECT *, RECT * > GetThemeTextExtent
TModuleProc7< HRESULT, HTHEME, HDC, int, int, int, RECT *, MARGINS * > GetThemeMargins
TModuleProc6< HRESULT, HTHEME, HDC, int, int, int, int * > GetThemeMetric
TModuleProc1< BOOL, HWND > IsThemeDialogTextureEnabled
TModuleProc8< HRESULT, HTHEME, HDC, int, int, const RECT *, UINT, UINT, RECT * > DrawThemeEdge
TModuleProc5< HRESULT, HTHEME, int, int, int, POINT * > GetThemePosition
TModuleProc5< HRESULT, HTHEME, int, int, int, COLORREF * > GetThemeColor
TModuleProc5< HRESULT, HTHEME, int, int, int, BOOL * > GetThemeBool
TModuleProc2< COLORREF, HTHEME, int > GetThemeSysColor
TModuleProc3< BOOL, HTHEME, int, int > IsThemeBackgroundPartiallyTransparent
static TThemeModule & GetInstance()
Returns the module instance.
TModuleProc4< HRESULT, LPCWSTR, LPCWSTR, LPWSTR, int > GetThemeDocumentationProperty
TModuleProc5< HRESULT, HTHEME, int, int, int, int * > GetThemeInt
TModuleProc0< BOOL > IsAppThemed
TModuleProc1< HRESULT, HTHEME > CloseThemeData
TModuleProc3< HRESULT, HWND, HDC, const RECT * > DrawThemeParentBackground
TModuleProc1< HTHEME, HWND > GetWindowTheme
TModuleProc3< HRESULT, HTHEME, int, LOGFONT * > GetThemeSysFont
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, RECT * > GetThemeBackgroundExtent
TThemePart(HWND, LPCWSTR cls, int part, int state)
Constructs a theme part handler.
void Throw()
Throws the exception.
TXTheme * Clone()
Creates a copy of the exception.
static void Raise(const tstring &name=tstring(), HRESULT=0)
Throws the exception.
TXTheme(const tstring &=tstring(), HRESULT=0)
Creates a theme exception.
TXOwl(const tstring &msg, uint resId=0)
An OWL exception with a given message for displaying and an unsigned Id that can be used for identifi...
TModule(const tstring &name, bool shouldLoad=true, bool mustLoad=true, bool addToList=true)
Constructs a TModule object that is used as an alias for a DLL.
Definition of class TModule.
Object Windows Library (OWLNext Core).