FLImaging 7.3.3.3
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 Gdiplus::StringFormat m_stringAlign;
26 bool m_bSetAlign;
27 bool m_bSetLineAlign;
28
29 public:
30 DECLARE_MESSAGE_MAP()
31 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
32 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
33 afx_msg void OnEnable(BOOL bEnable);
34 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
35 };
36 }
37}
Definition D2DObject.h:12