FLImaging 7.3.19.2
GUIManagerResource.h
1#pragma once
2#include "DefinitionsGUIResource.h"
3
4namespace FLImaging
5{
6 namespace GUI
7 {
8 class FL_EXPORT CGUIManagerResource : public Base::CFLBase
9 {
10 public:
11 CGUIManagerResource();
12 virtual ~CGUIManagerResource();
13
14 static CGUIManagerResource* GetInstance();
15
16 static bool Initialize();
17 static bool IsInitialized();
18 static bool Terminate();
19 static CBitmap* GetBmpResource(EResourceIdBitmap eResourceID);
20 static HCURSOR* GetCursorResource(UINT nIDResource);
21
22 static bool SetFontDefaultTree(const CWnd* pWndTree);
23 static bool SetFontDefaultLog(const CWnd* pWndLog);
24 static bool SetFontDefaultCode(const CWnd* pWndCode);
25
26 static CFont* GetFontDefaultTree();
27 static CFont* GetFontDefaultLog();
28 static CFont* GetFontDefaultCode();
29 static CFont* GetFontDefaultPropertyGridCtrl();
30 static CFont* GetFontDefaultPropertyPaneControls();
31
32 static CFont* GetFontMenuPane();
33 static CFont* GetFontPropertyGridCtrl();
34 static CFont* GetFontPropertyPaneControls();
35 static CFont* GetFontLogPane();
36 static CFont* GetFontCodePane();
37 static CFont* GetFontExampleSNAPPane();
38 static CFont* GetFontLayerObject();
39 static CFont* GetFontDefaultMediumSize();
40 static CFont* GetFontDefaultSmallSize();
41 static CFont* GetFontControls();
42 static CFont* GetFontDialogButton();
43 static CFont* GetFontPixelValue();
44
45 static bool SetFontMenuPane(LOGFONT* pLf, bool bWrite = true);
46 static bool SetFontExampleSNAPPane(LOGFONT* pLf, bool bWrite = true);
47 static bool SetFontPropertyPane(LOGFONT* pLfPropertyGridCtrl, LOGFONT* pLfPropertyControls, bool bWrite = true);
48 static bool SetFontPropertyGridCtrl(LOGFONT* pLfPropertyGridCtrl, bool bWrite = true);
49 static bool SetFontPropertyPaneControls(LOGFONT* pLfPropertyControls, bool bWrite = true);
50 static bool SetFontLogPane(LOGFONT* pLf, bool bWrite = true);
51 static bool SetFontCodePane(LOGFONT* pLf, bool bWrite = true);
52 static bool SetFontLayerObject();
53 static bool SetFontDefault();
54
55 static Gdiplus::Bitmap* LoadPngFromResource(HINSTANCE hInstance, LPCWSTR lpName, LPCWSTR lpType);
56
57 virtual void OnReceiveBroadcast(const Base::CBroadcastMessage* pMessage) override;
58
59 DeclareGetClassType();
60
61 private:
62 static CBitmap* GetBmpResource(UINT nIDResource);
63 static bool GetLogFontFromWnd(const CWnd* pWnd, LOGFONT& lf);
64
65 protected:
66 volatile bool m_bInitialized;
67 };
68 }
69}
70
Definition D2DObject.h:12