FLImaging 6.10.22.1
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
13 static CGUIManagerResource* GetInstance();
14
15 static bool Initialize();
16 static bool IsInitialized();
17 static bool Terminate();
18 static CBitmap* GetBmpResource(EResourceIdBitmap eResourceID);
19 static HCURSOR* GetCursorResource(UINT nIDResource);
20
21 static bool SetFontDefaultTree(const CWnd* pWndTree);
22 static bool SetFontDefaultLog(const CWnd* pWndLog);
23 static bool SetFontDefaultCode(const CWnd* pWndCode);
24 static bool SetFontDefaultPropertyGridCtrl(const CWnd* pWndPropertyGridCtrl);
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 DeclareGetClassType();
56
57 private:
58 static CBitmap* GetBmpResource(UINT nIDResource);
59 static bool GetLogFontFromWnd(const CWnd* pWnd, LOGFONT& lf);
60
61 protected:
62 volatile bool m_bInitialized;
63 };
64 }
65}
66
Definition D2DObject.h:12