2#include "DefinitionsGUIResource.h"
3#include "DefinitionsGUI.h"
9 class FL_EXPORT CGUIManagerResource :
public Base::CFLBase
12 CGUIManagerResource();
13 virtual ~CGUIManagerResource();
15 static CGUIManagerResource* GetInstance();
17 static bool Initialize();
18 static bool IsInitialized();
19 static bool Terminate();
20 static CBitmap* GetBmpResource(EResourceIdBitmap eResourceID);
21 static HCURSOR* GetCursorResource(UINT nIDResource);
23 static bool SetFontDefaultTree(
const CWnd* pWndTree);
24 static bool SetFontDefaultLog(
const CWnd* pWndLog);
25 static bool SetFontDefaultCode(
const CWnd* pWndCode);
27 static CFont* GetFontDefaultTree();
28 static CFont* GetFontDefaultLog();
29 static CFont* GetFontDefaultCode();
30 static CFont* GetFontDefaultPropertyGridCtrl();
31 static CFont* GetFontDefaultPropertyPaneControls();
33 static CFont* GetFontMenuPane();
34 static CFont* GetFontPropertyGridCtrl();
35 static CFont* GetFontPropertyPaneControls();
36 static CFont* GetFontLogPane();
37 static CFont* GetFontCodePane();
38 static CFont* GetFontExampleSNAPPane();
39 static CFont* GetFontLayerObject();
40 static CFont* GetFontLayerObject(int32_t i32FontSize, EGUIViewImageFontWeight eFontWeight,BOOL bItalic,
const Base::CFLString<wchar_t>& strFontName);
41 static CFont* GetFontDefaultMediumSize();
42 static CFont* GetFontDefaultSmallSize();
43 static CFont* GetFontDefaultSmallSize8();
44 static CFont* GetFontControls();
45 static CFont* GetFontDialogButton();
46 static CFont* GetFontPixelValue();
48 static bool SetFontMenuPane(LOGFONT* pLf,
bool bWrite =
true);
49 static bool SetFontExampleSNAPPane(LOGFONT* pLf,
bool bWrite =
true);
50 static bool SetFontPropertyPane(LOGFONT* pLfPropertyGridCtrl, LOGFONT* pLfPropertyControls,
bool bWrite =
true);
51 static bool SetFontPropertyGridCtrl(LOGFONT* pLfPropertyGridCtrl,
bool bWrite =
true);
52 static bool SetFontPropertyPaneControls(LOGFONT* pLfPropertyControls,
bool bWrite =
true);
53 static bool SetFontLogPane(LOGFONT* pLf,
bool bWrite =
true);
54 static bool SetFontCodePane(LOGFONT* pLf,
bool bWrite =
true);
55 static bool SetFontLayerObject();
56 static bool SetFontLayerObject(int32_t i32FontSize, EGUIViewImageFontWeight eFontWeight, BOOL bItalic,
const Base::CFLString<wchar_t>& strFontName);
57 static bool SetFontDefault();
58 static bool HasFontLayerObject(CFont* pFont);
60 static Gdiplus::Bitmap* LoadPngFromResource(HINSTANCE hInstance, LPCWSTR lpName, LPCWSTR lpType);
62 virtual void OnReceiveBroadcast(
const Base::CBroadcastMessage* pMessage)
override;
64 DeclareGetClassType();
67 static CBitmap* GetBmpResource(UINT nIDResource);
68 static bool GetLogFontFromWnd(
const CWnd* pWnd, LOGFONT& lf);
71 volatile bool m_bInitialized;
Definition D2DObject.h:12