FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiImageResource.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;
21{
22public:
24 CAdUiImageResource(unsigned int,unsigned int, HMODULE = nullptr );
25 CAdUiImageResource(unsigned int,unsigned int,unsigned int, HMODULE = nullptr );
26 CAdUiImageResource(unsigned int,unsigned int,wchar_t const *, HMODULE = nullptr );
27 CAdUiImageResource(unsigned int,wchar_t const *, HMODULE = nullptr );
29 CAdUiImageResource(wchar_t const *,wchar_t const * = RT_RCDATA, HMODULE = nullptr,bool=false);
30 bool Load(unsigned int,unsigned int, HMODULE = nullptr );
31 bool Load(unsigned int,unsigned int,unsigned int, HMODULE = nullptr );
32 bool Load(unsigned int,unsigned int,wchar_t const *, HMODULE = nullptr );
33 bool Load(unsigned int,wchar_t const *, HMODULE = nullptr );
34 bool Load(wchar_t const *,wchar_t const *, HMODULE = nullptr );
35 static CString GetThemedResourceName(wchar_t const *, CAdUiTheme const * = nullptr);
36 virtual ~CAdUiImageResource(void);
37 virtual bool Reload(void);
38 virtual void Empty(void);
39
40private:
41 bool isPredefinedResourceType(wchar_t const *);
42 bool isValidPredefinedResourceType(wchar_t const *);
43 bool loadIcon(wchar_t const *, HMODULE = nullptr);
44 bool loadResource(wchar_t const *,wchar_t const *, HMODULE = nullptr);
45 void clear(void);
46 void saveType(wchar_t const *);
47
48};
bool Load(unsigned int, unsigned int, wchar_t const *, HMODULE=nullptr)
virtual bool Reload(void)
CAdUiImageResource(unsigned int, wchar_t const *, HMODULE=nullptr)
static CString GetThemedResourceName(wchar_t const *, CAdUiTheme const *=nullptr)
CAdUiImageResource(unsigned int, unsigned int, unsigned int, HMODULE=nullptr)
bool Load(wchar_t const *, wchar_t const *, HMODULE=nullptr)
bool Load(unsigned int, unsigned int, HMODULE=nullptr)
bool Load(unsigned int, unsigned int, unsigned int, HMODULE=nullptr)
CAdUiImageResource(unsigned int, unsigned int, wchar_t const *, HMODULE=nullptr)
CAdUiImageResource(unsigned int, unsigned int, HMODULE=nullptr)
bool Load(unsigned int, wchar_t const *, HMODULE=nullptr)
CAdUiImageResource(wchar_t const *, wchar_t const *=RT_RCDATA, HMODULE=nullptr, bool=false)
virtual ~CAdUiImageResource(void)
virtual void Empty(void)