FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiVisualStyles.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19
20#include "Global Structs.h"
21struct _INTLIST;
22struct _MARGINS;
23
25{
26public:
28
29private:
30 static int m_bIsXPOrAbove;
31 static HINSTANCE__ * m_hThemeDll;
32
33public:
36 int GetThemeSysBool(void *,int);
37 int GetThemeSysSize(void *,int);
38 int IsAppThemed(void);
39 int IsThemeActive(void);
42 int IsThemePartDefined(void *,int,int);
43 long CloseThemeData(void *);
44 long DrawThemeBackground(void *, HDC__ *,int,int, tagRECT const *, tagRECT const *);
45 long DrawThemeEdge(void *, HDC__ *,int,int, tagRECT const *,unsigned int,unsigned int, tagRECT *);
46 long DrawThemeIcon(void *, HDC__ *,int,int, tagRECT const *, _IMAGELIST *,int);
48 long DrawThemeText(void *, HDC__ *,int,int,wchar_t const *,int,unsigned long,unsigned long, tagRECT const *);
49 long EnableThemeDialogTexture( HWND__ *,unsigned long);
50 long EnableTheming(int);
51 long GetCurrentThemeName(wchar_t *,int,wchar_t *,int,wchar_t *,int);
52 long GetThemeBackgroundContentRect(void *, HDC__ *,int,int, tagRECT const *, tagRECT *);
53 long GetThemeBackgroundExtent(void *, HDC__ *,int,int, tagRECT const *, tagRECT *);
54 long GetThemeBackgroundRegion(void *, HDC__ *,int,int, tagRECT const *, HRGN__ * *);
55 long GetThemeBool(void *,int,int,int,int *);
56 long GetThemeColor(void *,int,int,int,unsigned long *);
57 long GetThemeDocumentationProperty(wchar_t const *,wchar_t const *,wchar_t *,int);
58 long GetThemeEnumValue(void *,int,int,int,int *);
59 long GetThemeFilename(void *,int,int,int,wchar_t *,int);
60 long GetThemeFont(void *, HDC__ *,int,int,int, tagLOGFONTW *);
61 long GetThemeInt(void *,int,int,int,int *);
62 long GetThemeIntList(void *,int,int,int, _INTLIST *);
63 long GetThemeMargins(void *, HDC__ *,int,int,int, tagRECT *, _MARGINS *);
64 long GetThemeMetric(void *, HDC__ *,int,int,int,int *);
65 long GetThemePartSize(void *, HDC__ *,int,int, tagRECT *, THEMESIZE, tagSIZE *);
66 long GetThemePosition(void *,int,int,int, tagPOINT *);
67 long GetThemePropertyOrigin(void *,int,int,int, PROPERTYORIGIN *);
68 long GetThemeRect(void *,int,int,int, tagRECT *);
69 long GetThemeString(void *,int,int,int,wchar_t *,int);
70 long GetThemeSysFont(void *,int, tagLOGFONTW *);
71 long GetThemeSysInt(void *,int,int *);
72 long GetThemeSysString(void *,int,wchar_t *,int);
73 long GetThemeTextExtent(void *, HDC__ *,int,int,wchar_t const *,int,unsigned long, tagRECT const *, tagRECT *);
74 long GetThemeTextMetrics(void *, HDC__ *,int,int, tagTEXTMETRICW *);
75 long HitTestThemeBackground(void *, HDC__ *,int,int,unsigned long, tagRECT const *, HRGN__ *, tagPOINT,unsigned short *);
76 long SetWindowTheme( HWND__ *,wchar_t const *,wchar_t const *);
77 static int __cdecl IsOsXPOrAbove(void);
79 unsigned long GetThemeAppProperties(void);
80 unsigned long GetThemeSysColor(void *,int);
81 virtual ~CAdUiVisualStyles(void);
82 virtual int IsThemed(void);
85 void * OpenThemeData( HWND__ *,wchar_t const *);
86 void EndBufferedAnimation(void *,int);
87 void SetThemeAppProperties(unsigned long);
88
89protected:
90
91private:
92 void * GetProc(char const *);
93
94};
_BP_BUFFERFORMAT
long CloseThemeData(void *)
int IsThemePartDefined(void *, int, int)
void SetThemeAppProperties(unsigned long)
long GetThemeString(void *, int, int, int, wchar_t *, int)
long GetThemeEnumValue(void *, int, int, int, int *)
long GetThemeRect(void *, int, int, int, tagRECT *)
long GetThemeColor(void *, int, int, int, unsigned long *)
void * BeginBufferedAnimation(HWND__ *, HDC__ *, tagRECT const *, _BP_BUFFERFORMAT, _BP_PAINTPARAMS *, _BP_ANIMATIONPARAMS *, HDC__ **, HDC__ **)
long GetThemeBackgroundRegion(void *, HDC__ *, int, int, tagRECT const *, HRGN__ **)
long GetThemeIntList(void *, int, int, int, _INTLIST *)
unsigned long GetThemeAppProperties(void)
long GetThemeDocumentationProperty(wchar_t const *, wchar_t const *, wchar_t *, int)
DECLARE_DYNAMIC(CAdUiVisualStyles)
long GetThemeBackgroundExtent(void *, HDC__ *, int, int, tagRECT const *, tagRECT *)
long GetThemeSysString(void *, int, wchar_t *, int)
long GetThemeBool(void *, int, int, int, int *)
int IsThemeBackgroundPartiallyTransparent(void *, int, int)
long GetThemeBackgroundContentRect(void *, HDC__ *, int, int, tagRECT const *, tagRECT *)
long GetThemeTextExtent(void *, HDC__ *, int, int, wchar_t const *, int, unsigned long, tagRECT const *, tagRECT *)
HBRUSH__ * GetThemeSysColorBrush(void *, int)
long GetThemePropertyOrigin(void *, int, int, int, PROPERTYORIGIN *)
long GetThemePartSize(void *, HDC__ *, int, int, tagRECT *, THEMESIZE, tagSIZE *)
long GetThemeFont(void *, HDC__ *, int, int, int, tagLOGFONTW *)
long DrawThemeParentBackground(HWND__ *, HDC__ *, tagRECT *)
long SetWindowTheme(HWND__ *, wchar_t const *, wchar_t const *)
long GetThemeTextMetrics(void *, HDC__ *, int, int, tagTEXTMETRICW *)
void EndBufferedAnimation(void *, int)
int GetThemeSysBool(void *, int)
long DrawThemeIcon(void *, HDC__ *, int, int, tagRECT const *, _IMAGELIST *, int)
static int __cdecl IsOsXPOrAbove(void)
long GetThemePosition(void *, int, int, int, tagPOINT *)
long GetThemeSysFont(void *, int, tagLOGFONTW *)
virtual int IsThemed(void)
long DrawThemeEdge(void *, HDC__ *, int, int, tagRECT const *, unsigned int, unsigned int, tagRECT *)
int IsThemeActive(void)
long EnableThemeDialogTexture(HWND__ *, unsigned long)
unsigned long GetThemeSysColor(void *, int)
void * GetWindowTheme(HWND__ *)
int IsAppThemed(void)
void * OpenThemeData(HWND__ *, wchar_t const *)
long GetCurrentThemeName(wchar_t *, int, wchar_t *, int, wchar_t *, int)
long GetThemeMetric(void *, HDC__ *, int, int, int, int *)
long HitTestThemeBackground(void *, HDC__ *, int, int, unsigned long, tagRECT const *, HRGN__ *, tagPOINT, unsigned short *)
long EnableTheming(int)
long GetThemeSysInt(void *, int, int *)
long GetThemeFilename(void *, int, int, int, wchar_t *, int)
long DrawThemeText(void *, HDC__ *, int, int, wchar_t const *, int, unsigned long, unsigned long, tagRECT const *)
int BufferedPaintRenderAnimation(HWND__ *, HDC__ *)
virtual ~CAdUiVisualStyles(void)
long GetThemeMargins(void *, HDC__ *, int, int, int, tagRECT *, _MARGINS *)
long GetThemeInt(void *, int, int, int, int *)
long DrawThemeBackground(void *, HDC__ *, int, int, tagRECT const *, tagRECT const *)
int GetThemeSysSize(void *, int)
int IsThemeDialogTextureEnabled(HWND__ *)