FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiImage.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2023 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
19class CAdUiTheme;
20class CDC;
21template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
22struct Gdiplus::GdiplusStartupInput;
23
25{
26private:
27 static Gdiplus::GdiplusStartupInput g_gdiplusStartupInput;
28 static unsigned __int64 g_gdiplusToken;
29 static unsigned int g_instanceCount;
30
31public:
32 CAdUiImage(bool = false);
34 CAdUiImage(wchar_t const *,bool);
35 bool DrawImage( CDC *,int,int,bool = false);
36 bool DrawImage( CDC *,int,int,int,int,bool = false);
37 bool DrawImage( CDC *,int,int,int,int,int,int,bool = false);
38 bool DrawImage( CDC *,int,int,int,int,int,int,int,int,bool = false);
39 bool IsThemed(void);
40 bool Load(wchar_t const *);
41 Gdiplus::Bitmap * GetBitmap(void)const;
42 static CString GetThemedFileName(wchar_t const *, CAdUiTheme const * = nullptr);
43 unsigned int GetHeight(void)const;
44 unsigned int GetWidth(void)const;
45 virtual ~CAdUiImage(void);
46 virtual bool Reload(void);
47 virtual void Empty(void);
48 void SetBitmap( Gdiplus::Bitmap *);
49 void SetIsThemed(bool);
50 void SetTheme( CAdUiTheme const *);
51
52protected:
53 bool IsThemeDark(void)const;
54 static bool IsCurrentPaletteThemeDark(void);
55
56private:
57 void clear(void);
58 void commonCtr(bool);
59 void drawImage( CDC *,int,int,int,int,int,int,int,int,bool);
60
61};
CAdUiImage(HBITMAP__ *, int)
CAdUiImage(bool=false)
bool Load(wchar_t const *)
void SetTheme(CAdUiTheme const *)
bool DrawImage(CDC *, int, int, int, int, bool=false)
bool IsThemeDark(void) const
static bool IsCurrentPaletteThemeDark(void)
unsigned int GetHeight(void) const
unsigned int GetWidth(void) const
void SetBitmap(Gdiplus::Bitmap *)
static CString GetThemedFileName(wchar_t const *, CAdUiTheme const *=nullptr)
bool DrawImage(CDC *, int, int, int, int, int, int, bool=false)
virtual ~CAdUiImage(void)
virtual bool Reload(void)
bool IsThemed(void)
Gdiplus::Bitmap * GetBitmap(void) const
void SetIsThemed(bool)
CAdUiImage(wchar_t const *, bool)
virtual void Empty(void)
bool DrawImage(CDC *, int, int, bool=false)
bool DrawImage(CDC *, int, int, int, int, int, int, int, int, bool=false)