FLImaging 6.5.8.1
GUIStaticText.h
1#pragma once
2#include <afxwin.h>
3#include "GUIWndCtrlBase.h"
4
5namespace FLImaging
6{
7 namespace GUI
8 {
9 class FL_EXPORT CGUIStaticText : public CStatic, public CGUIWndCtrlBase
10 {
11 public:
12 CGUIStaticText();
13 virtual ~CGUIStaticText();
14
15 public:
16 virtual void SetAlignment(Gdiplus::StringAlignment align);
17 virtual void SetLineAlignment(Gdiplus::StringAlignment align);
18
19 protected:
20 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) override;
21 virtual void DrawBackground(CDC* pDC, CRect& rect);
22 virtual void DrawText(CDC* pDC);
23
24 protected:
25 BOOL m_bCursorOnWnd;
26 BOOL m_bLButtonDown;
27
28 Gdiplus::StringFormat m_stringAlign;
29 bool m_bSetAlign;
30 bool m_bSetLineAlign;
31 bool m_bEnabled;
32
33 public:
34 DECLARE_MESSAGE_MAP()
35 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
36 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
37 afx_msg void OnEnable(BOOL bEnable);
38 };
39 }
40}