FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiTheme.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
20class CFont;
21template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
22
24{
25 friend class DefValueProducer;
26
27public:
28 bool IsDark(void)const;
33 bool UsesActiveThemeColors(void) const;
35 int GetData(int, CStringW &)const ;
36 int GetData(int,unsigned long &)const ;
37 int GetFont( AdUiThemeElement, CFont * &)const ;
40 int SetColor( AdUiThemeElement,unsigned long);
43 unsigned long GetColor( AdUiThemeElement)const ;
44 void * GetDataPtr(int)const ;
47 void SendModifiedNotification(void)const ;
48 void SetData(int, CStringW const &);
49 void SetData(int,unsigned long const &);
50 void SetDataPtr(int,void *);
52
53private:
55 void InitializeFont(struct tagLOGFONTW &,struct tagLOGFONTW &,int);
56 void InitializeFontsForDialog(void);
57 void SetColorTheme( CAcColorTheme const &,enum AcColorThemeEnum);
58 void commonInitialize(void);
59 CAdUiTheme(void);
60 int RefCount(void);
61 int UsesXP(void);
62 unsigned long GetActiveThemeColor( AdUiThemeElement)const ;
63 virtual ~CAdUiTheme(void);
64 void CheckXP(void);
65 void DecrementRefCount(void);
66 void InitWithActiveThemeColors(void);
67 void SendThemeModifiedNotifications( AdUiThemeElement)const ;
68
69};
AdUiThemeElement
AcColorThemeEnum
int UnregisterReactor(CAdUiThemeModifiedReactor *)
bool IsDark(void) const
int SetColor(AdUiThemeElement, unsigned long)
DWORD GetARGBColor(enum AdUiThemeElement) const
void SuspendModifiedNotifications(void)
void SetDataPtr(int, void *)
void SetData(int, unsigned long const &)
CAdUiTheme & operator=(CAdUiTheme const &)
static COLORREF GetRGBForeColor(DWORD, COLORREF)
int GetData(int, unsigned long &) const
void SetData(int, CStringW const &)
int GetFont(AdUiThemeElement, tagLOGFONTW *) const
int SetARGBColor(enum AdUiThemeElement, DWORD)
CAdUiTheme & operator=(CAdUiTheme const *)
int GetData(int, CStringW &) const
int GetFont(AdUiThemeElement, CFont *&) const
unsigned long GetColor(AdUiThemeElement) const
void * GetDataPtr(int) const
bool UsesActiveThemeColors(void) const
void IncrementRefCount(void)
void SendModifiedNotification(void) const
int SetFont(AdUiThemeElement, tagLOGFONTW *)
int RegisterReactor(CAdUiThemeModifiedReactor *)
void ResumeModifiedNotifications(void)