OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TThemeModule Class Reference

This singleton encapsulates the "uxtheme.dll" module. More...

#include <owl/theme.h>

Inheritance diagram for owl::TThemeModule:
owl::TModule owl::TStreamableBase

Static Public Member Functions

static TThemeModuleGetInstance ()
 Returns the module instance.
 
- Static Public Member Functions inherited from owl::TModule
static TModuleFindResModule (TResId id, TResId type)
 Global search for resources.
 
static TModuleNextModule (TModule *module=nullptr)
 

Public Attributes

TModuleProc1< HRESULT, HTHEMECloseThemeData
 
TModuleProc3< HRESULT, HWND, HDC, const RECT * > DrawThemeParentBackground
 
TModuleProc2< HRESULT, HWND, DWORDEnableThemeDialogTexture
 
TModuleProc1< HRESULT, BOOLEnableTheming
 
TModuleProc6< HRESULT, LPWSTR, int, LPWSTR, int, LPWSTR, intGetCurrentThemeName
 
TModuleProc0< DWORDGetThemeAppProperties
 
TModuleProc4< HRESULT, LPCWSTR, LPCWSTR, LPWSTR, intGetThemeDocumentationProperty
 
TModuleProc1< HTHEME, HWNDGetWindowTheme
 
TModuleProc0< BOOLIsAppThemed
 
TModuleProc0< BOOLIsThemeActive
 
TModuleProc1< BOOL, HWNDIsThemeDialogTextureEnabled
 
TModuleProc2< HTHEME, HWND, LPCWSTROpenThemeData
 
TModuleProcV1< DWORDSetThemeAppProperties
 
TModuleProc3< HRESULT, HWND, LPCWSTR, LPCWSTRSetWindowTheme
 
TModuleProc2< BOOL, HTHEME, intGetThemeSysBool
 
TModuleProc2< COLORREF, HTHEME, intGetThemeSysColor
 
TModuleProc2< HBRUSH, HTHEME, intGetThemeSysColorBrush
 
TModuleProc3< HRESULT, HTHEME, int, LOGFONT * > GetThemeSysFont
 
TModuleProc3< HRESULT, HTHEME, int, int * > GetThemeSysInt
 
TModuleProc2< int, HTHEME, intGetThemeSysSize
 
TModuleProc4< HRESULT, HTHEME, int, LPWSTR, intGetThemeSysString
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, const RECT * > DrawThemeBackground
 
TModuleProc8< HRESULT, HTHEME, HDC, int, int, const RECT *, UINT, UINT, RECT * > DrawThemeEdge
 
TModuleProc7< HRESULT, HTHEME, HDC, int, int, const RECT *, HIMAGELIST, intDrawThemeIcon
 
TModuleProc9< HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, DWORD, const RECT * > DrawThemeText
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, RECT * > GetThemeBackgroundContentRect
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, RECT * > GetThemeBackgroundExtent
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, const RECT *, HRGN * > GetThemeBackgroundRegion
 
TModuleProc5< HRESULT, HTHEME, int, int, int, BOOL * > GetThemeBool
 
TModuleProc5< HRESULT, HTHEME, int, int, int, COLORREF * > GetThemeColor
 
TModuleProc5< HRESULT, HTHEME, int, int, int, int * > GetThemeEnumValue
 
TModuleProc6< HRESULT, HTHEME, int, int, int, LPWSTR, intGetThemeFilename
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, int, LOGFONT * > GetThemeFont
 
TModuleProc5< HRESULT, HTHEME, int, int, int, int * > GetThemeInt
 
TModuleProc5< HRESULT, HTHEME, int, int, int, INTLIST * > GetThemeIntList
 
TModuleProc7< HRESULT, HTHEME, HDC, int, int, int, RECT *, MARGINS * > GetThemeMargins
 
TModuleProc6< HRESULT, HTHEME, HDC, int, int, int, int * > GetThemeMetric
 
TModuleProc7< HRESULT, HTHEME, HDC, int, int, RECT *, THEMESIZE, SIZE * > GetThemePartSize
 
TModuleProc5< HRESULT, HTHEME, int, int, int, POINT * > GetThemePosition
 
TModuleProc5< HRESULT, HTHEME, int, int, int, PROPERTYORIGIN * > GetThemePropertyOrigin
 
TModuleProc5< HRESULT, HTHEME, int, int, int, RECT * > GetThemeRect
 
TModuleProc6< HRESULT, HTHEME, int, int, int, LPWSTR, intGetThemeString
 
TModuleProc9< HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, const RECT *, RECT * > GetThemeTextExtent
 
TModuleProc5< HRESULT, HTHEME, HDC, int, int, TEXTMETRIC * > GetThemeTextMetrics
 
TModuleProc9< HRESULT, HTHEME, HDC, int, int, DWORD, const RECT *, HRGN, POINT, WORD * > HitTestThemeBackground
 
TModuleProc3< BOOL, HTHEME, int, intIsThemeBackgroundPartiallyTransparent
 
TModuleProc3< BOOL, HTHEME, int, intIsThemePartDefined
 

Additional Inherited Members

- Public Types inherited from owl::TModule
typedef HINSTANCE THandle
 TModule encapsulates an HINSTANCE.
 
- Public Member Functions inherited from owl::TModule
 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.
 
 TModule (LPCTSTR name, THandle handle, bool addToList=true)
 Constructs a TModule object that is an alias for an already loaded DLL or program with an available HInstance.
 
 TModule (const tstring &name, THandle handle, bool addToList=true)
 String-aware overload.
 
 TModule (LPCTSTR name, THandle handle, const tstring &cmdLine, bool addToList=true)
 Constructs a TModule object for an ObjectWindows DLL or program from within LibMain or WinMain.
 
 TModule (const tstring &name, THandle handle, const tstring &cmdLine, bool addToList=true)
 String-aware overload.
 
virtual ~TModule ()
 Destructs a TModule, freeing the instance if appropriate, and deleting new'd strings.
 
void InitModule (THandle handle, const tstring &cmdLine)
 Finish-up initialization of a module.
 
virtual int Error (TXBase &x, uint captionResId, uint promptResId=0)
 Replaceable exception handler; may be redefined to process OWL exceptions if canResume is false, then the user doesn't have the option of ignoring.
 
LPCTSTR GetName () const
 Returns the name of the module.
 
void SetName (LPCTSTR name)
 Accessor function that sets the name of the module.
 
void SetName (const tstring &name)
 String-aware overload.
 
THandle GetHandle () const
 Return the instance handle of the library module represented by the TModule obect.
 
 operator THandle () const
 Returns the handle of the application or DLL module represented by this TModule.
 
bool operator== (const TModule &m) const
 Returns true if this instance is equal to the other instance; otherwise, returns false.
 
bool IsLoaded () const
 Returns a nonzero value if the instance handle is loaded.
 
int GetModuleFileName (TCHAR *buff, int maxChars) const
 Returns the expanded file name (path and file name) of the file from which this module was loaded.
 
tstring GetModuleFileName () const
 String-aware overload.
 
FARPROC GetProcAddress (TNarrowResId) const
 Returns the entry-point address of the specified exported function if found, otherwise returns NULL.
 
HRSRC FindResource (TResId id, TResId type) const
 Wrapper for the Windows API to find a particular resource.
 
HRSRC FindResourceEx (TResId id, TResId type, TLangId langId=LangNeutral) const
 Wrapper for the Windows API to find a particular resource.
 
HGLOBAL LoadResource (HRSRC hRsrc) const
 Wrapper for the Windows API.
 
uint32 SizeofResource (HRSRC hRsrc) const
 Wrapper for the Windows API.
 
int LoadString (uint id, TCHAR *buf, int maxChars) const
 Loads a string resource identified by id into the buffer pointed to by buff.
 
tstring LoadString (uint id) const
 Loads a string resource identified by id.
 
HBITMAP LoadBitmap (TResId id) const
 Wrapper for the Windows API.
 
HACCEL LoadAccelerators (TResId id) const
 Wrapper for the Windows API.
 
HMENU LoadMenu (TResId id) const
 Wrapper for the Windows API.
 
HCURSOR LoadCursor (TResId id) const
 Wrapper for the Windows API.
 
HICON LoadIcon (TResId name) const
 Wrapper for the Windows API.
 
std::string LoadHtml (TResId) const
 Loads the given HTML resource and returns it as a narrow string.
 
HICON CopyIcon (HICON hIcon) const
 Wrapper for the Windows API.
 
auto GetClassInfo (TWindowClassName, WNDCLASS *wndclass) const -> bool
 Retrieves information about the given window class.
 
auto GetClassInfo (TWindowClassName) const -> WNDCLASS
 Functional-style overload.
 
auto IsRegisteredClass (TWindowClassName) const -> bool
 Returns true if the given window class has been registered.
 
- Public Member Functions inherited from owl::TStreamableBase
virtual ~TStreamableBase ()
 
- Protected Member Functions inherited from owl::TModule
void SetHandle (THandle handle)
 Set the module instance handle.
 

Detailed Description

This singleton encapsulates the "uxtheme.dll" module.

Definition at line 31 of file theme.h.

Member Function Documentation

◆ GetInstance()

TThemeModule & owl::TThemeModule::GetInstance ( )
static

Returns the module instance.

Singleton accessor.

Exceptions are thrown if the module cannot be loaded.

Definition at line 91 of file theme.cpp.

References _T.

Member Data Documentation

◆ CloseThemeData

TModuleProc1<HRESULT, HTHEME> owl::TThemeModule::CloseThemeData

Definition at line 43 of file theme.h.

◆ DrawThemeBackground

TModuleProc6<HRESULT, HTHEME, HDC, int, int, const RECT*, const RECT*> owl::TThemeModule::DrawThemeBackground

Definition at line 72 of file theme.h.

◆ DrawThemeEdge

TModuleProc8<HRESULT, HTHEME, HDC, int, int, const RECT*, UINT, UINT, RECT*> owl::TThemeModule::DrawThemeEdge

Definition at line 73 of file theme.h.

◆ DrawThemeIcon

TModuleProc7<HRESULT, HTHEME, HDC, int, int, const RECT*, HIMAGELIST, int> owl::TThemeModule::DrawThemeIcon

Definition at line 74 of file theme.h.

◆ DrawThemeParentBackground

TModuleProc3<HRESULT, HWND, HDC, const RECT*> owl::TThemeModule::DrawThemeParentBackground

Definition at line 44 of file theme.h.

◆ DrawThemeText

TModuleProc9<HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, DWORD, const RECT*> owl::TThemeModule::DrawThemeText

Definition at line 75 of file theme.h.

◆ EnableThemeDialogTexture

TModuleProc2<HRESULT, HWND, DWORD> owl::TThemeModule::EnableThemeDialogTexture

Definition at line 45 of file theme.h.

◆ EnableTheming

TModuleProc1<HRESULT, BOOL> owl::TThemeModule::EnableTheming

Definition at line 46 of file theme.h.

◆ GetCurrentThemeName

TModuleProc6<HRESULT, LPWSTR, int, LPWSTR, int, LPWSTR, int> owl::TThemeModule::GetCurrentThemeName

Definition at line 47 of file theme.h.

◆ GetThemeAppProperties

TModuleProc0<DWORD> owl::TThemeModule::GetThemeAppProperties

Definition at line 48 of file theme.h.

◆ GetThemeBackgroundContentRect

TModuleProc6<HRESULT, HTHEME, HDC, int, int, const RECT*, RECT*> owl::TThemeModule::GetThemeBackgroundContentRect

Definition at line 76 of file theme.h.

◆ GetThemeBackgroundExtent

TModuleProc6<HRESULT, HTHEME, HDC, int, int, const RECT*, RECT*> owl::TThemeModule::GetThemeBackgroundExtent

Definition at line 77 of file theme.h.

◆ GetThemeBackgroundRegion

TModuleProc6<HRESULT, HTHEME, HDC, int, int, const RECT*, HRGN*> owl::TThemeModule::GetThemeBackgroundRegion

Definition at line 78 of file theme.h.

◆ GetThemeBool

TModuleProc5<HRESULT, HTHEME, int, int, int, BOOL*> owl::TThemeModule::GetThemeBool

Definition at line 79 of file theme.h.

◆ GetThemeColor

TModuleProc5<HRESULT, HTHEME, int, int, int, COLORREF*> owl::TThemeModule::GetThemeColor

Definition at line 80 of file theme.h.

◆ GetThemeDocumentationProperty

TModuleProc4<HRESULT, LPCWSTR, LPCWSTR, LPWSTR, int> owl::TThemeModule::GetThemeDocumentationProperty

Definition at line 49 of file theme.h.

◆ GetThemeEnumValue

TModuleProc5<HRESULT, HTHEME, int, int, int, int*> owl::TThemeModule::GetThemeEnumValue

Definition at line 81 of file theme.h.

◆ GetThemeFilename

TModuleProc6<HRESULT, HTHEME, int, int, int, LPWSTR, int> owl::TThemeModule::GetThemeFilename

Definition at line 82 of file theme.h.

◆ GetThemeFont

TModuleProc6<HRESULT, HTHEME, HDC, int, int, int, LOGFONT*> owl::TThemeModule::GetThemeFont

Definition at line 83 of file theme.h.

◆ GetThemeInt

TModuleProc5<HRESULT, HTHEME, int, int, int, int*> owl::TThemeModule::GetThemeInt

Definition at line 84 of file theme.h.

◆ GetThemeIntList

TModuleProc5<HRESULT, HTHEME, int, int, int, INTLIST*> owl::TThemeModule::GetThemeIntList

Definition at line 85 of file theme.h.

◆ GetThemeMargins

TModuleProc7<HRESULT, HTHEME, HDC, int, int, int, RECT*, MARGINS*> owl::TThemeModule::GetThemeMargins

Definition at line 86 of file theme.h.

◆ GetThemeMetric

TModuleProc6<HRESULT, HTHEME, HDC, int, int, int, int*> owl::TThemeModule::GetThemeMetric

Definition at line 87 of file theme.h.

◆ GetThemePartSize

TModuleProc7<HRESULT, HTHEME, HDC, int, int, RECT*, THEMESIZE, SIZE*> owl::TThemeModule::GetThemePartSize

Definition at line 88 of file theme.h.

◆ GetThemePosition

TModuleProc5<HRESULT, HTHEME, int, int, int, POINT*> owl::TThemeModule::GetThemePosition

Definition at line 89 of file theme.h.

◆ GetThemePropertyOrigin

TModuleProc5<HRESULT, HTHEME, int, int, int, PROPERTYORIGIN*> owl::TThemeModule::GetThemePropertyOrigin

Definition at line 90 of file theme.h.

◆ GetThemeRect

TModuleProc5<HRESULT, HTHEME, int, int, int, RECT*> owl::TThemeModule::GetThemeRect

Definition at line 91 of file theme.h.

◆ GetThemeString

TModuleProc6<HRESULT, HTHEME, int, int, int, LPWSTR, int> owl::TThemeModule::GetThemeString

Definition at line 92 of file theme.h.

◆ GetThemeSysBool

TModuleProc2<BOOL, HTHEME, int> owl::TThemeModule::GetThemeSysBool

Definition at line 61 of file theme.h.

◆ GetThemeSysColor

TModuleProc2<COLORREF, HTHEME, int> owl::TThemeModule::GetThemeSysColor

Definition at line 62 of file theme.h.

◆ GetThemeSysColorBrush

TModuleProc2<HBRUSH, HTHEME, int> owl::TThemeModule::GetThemeSysColorBrush

Definition at line 63 of file theme.h.

◆ GetThemeSysFont

TModuleProc3<HRESULT, HTHEME, int, LOGFONT*> owl::TThemeModule::GetThemeSysFont

Definition at line 64 of file theme.h.

◆ GetThemeSysInt

TModuleProc3<HRESULT, HTHEME, int, int*> owl::TThemeModule::GetThemeSysInt

Definition at line 65 of file theme.h.

◆ GetThemeSysSize

TModuleProc2<int, HTHEME, int> owl::TThemeModule::GetThemeSysSize

Definition at line 66 of file theme.h.

◆ GetThemeSysString

TModuleProc4<HRESULT, HTHEME, int, LPWSTR, int> owl::TThemeModule::GetThemeSysString

Definition at line 67 of file theme.h.

◆ GetThemeTextExtent

TModuleProc9<HRESULT, HTHEME, HDC, int, int, LPCWSTR, int, DWORD, const RECT*, RECT*> owl::TThemeModule::GetThemeTextExtent

Definition at line 93 of file theme.h.

◆ GetThemeTextMetrics

TModuleProc5<HRESULT, HTHEME, HDC, int, int, TEXTMETRIC*> owl::TThemeModule::GetThemeTextMetrics

Definition at line 94 of file theme.h.

◆ GetWindowTheme

TModuleProc1<HTHEME, HWND> owl::TThemeModule::GetWindowTheme

Definition at line 50 of file theme.h.

◆ HitTestThemeBackground

TModuleProc9<HRESULT, HTHEME, HDC, int, int, DWORD, const RECT*, HRGN, POINT, WORD*> owl::TThemeModule::HitTestThemeBackground

Definition at line 95 of file theme.h.

◆ IsAppThemed

TModuleProc0<BOOL> owl::TThemeModule::IsAppThemed

Definition at line 51 of file theme.h.

◆ IsThemeActive

TModuleProc0<BOOL> owl::TThemeModule::IsThemeActive

Definition at line 52 of file theme.h.

◆ IsThemeBackgroundPartiallyTransparent

TModuleProc3<BOOL, HTHEME, int, int> owl::TThemeModule::IsThemeBackgroundPartiallyTransparent

Definition at line 96 of file theme.h.

◆ IsThemeDialogTextureEnabled

TModuleProc1<BOOL, HWND> owl::TThemeModule::IsThemeDialogTextureEnabled

Definition at line 53 of file theme.h.

◆ IsThemePartDefined

TModuleProc3<BOOL, HTHEME, int, int> owl::TThemeModule::IsThemePartDefined

Definition at line 97 of file theme.h.

◆ OpenThemeData

TModuleProc2<HTHEME, HWND, LPCWSTR> owl::TThemeModule::OpenThemeData

Definition at line 54 of file theme.h.

◆ SetThemeAppProperties

TModuleProcV1<DWORD> owl::TThemeModule::SetThemeAppProperties

Definition at line 55 of file theme.h.

◆ SetWindowTheme

TModuleProc3<HRESULT, HWND, LPCWSTR, LPCWSTR> owl::TThemeModule::SetWindowTheme

Definition at line 56 of file theme.h.


The documentation for this class was generated from the following files: