FLImaging 6.6.27.1
GUIManagerResource.h
1#pragma once
2#include "GUIDefinitionsResource.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* GetObject();
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(CWnd* pWndTree);
22 static bool SetFontDefaultLog(CWnd* pWndLog);
23 static bool SetFontDefaultCode(CWnd* pWndCode);
24 static bool SetFontDefaultPropertyGridCtrl(CWnd* pWndPropertyGridCtrl);
25
26 static CFont* GetFontDefaultTree();
27 static CFont* GetFontDefaultLog();
28 static CFont* GetFontDefaultCode();
29 static CFont* GetFontDefaultPropertyGridCtrl();
30
31 static CFont* GetFontMenuPane();
32 static CFont* GetFontPropertyGridCtrl();
33 static CFont* GetFontPropertyControls();
34 static CFont* GetFontLogPane();
35 static CFont* GetFontCodePane();
36 static CFont* GetFontExampleSNAPPane();
37 static CFont* GetFontLayerObject();
38 static CFont* GetFontDefaultMediumSize();
39 static CFont* GetFontDefaultSmallSize();
40 static CFont* GetFontControls();
41 static CFont* GetFontDialogButton();
42 static CFont* GetFontPixelValue();
43
44 static bool SetFontMenuPane(LOGFONT* pLf, bool bWrite = true);
45 static bool SetFontExampleSNAPPane(LOGFONT* pLf, bool bWrite = true);
46 static bool SetFontPropertyPane(LOGFONT* pLfPropertyGridCtrl, LOGFONT* pLfPropertyControls, bool bWrite = true);
47 static bool SetFontLogPane(LOGFONT* pLf, bool bWrite = true);
48 static bool SetFontCodePane(LOGFONT* pLf, bool bWrite = true);
49 static bool SetFontLayerObject();
50 static bool SetFontDefault();
51
52 DeclareGetClassType();
53
54 private:
55 static CBitmap* GetBmpResource(UINT nIDResource);
56 static bool GetLogFontFromWnd(const CWnd* pWnd, LOGFONT& lf);
57
58 protected:
59 volatile bool m_bInitialized;
60 };
61 }
62}
63
Definition D2DObject.h:12