FLImaging 6.5.7.5
GUIRadioButton.h
1#pragma once
2
11#include <afxwin.h>
12#include "GUIWndCtrlBase.h"
13#include "GUIDefinitions.h"
14
16namespace FLImaging
17{
19 namespace GUI
20 {
28 class FL_EXPORT CGUIRadioButton : public CButton, public CGUIWndCtrlBase
29 {
30 public:
38
46
47 public:
59 void SetCheck(int32_t i32Check, bool bInvalidate = true);
60
69 int32_t GetCheck() const;
70
78 virtual void Enable(bool bEnable);
79
87 virtual bool IsEnabled() const;
88
89 virtual void SetTextAlignment(EGUIAlignment eAlign);
90 virtual EGUIAlignment GetTextAlignment()const;
91
92 virtual void SetStringTrimming(EGUIStringTrimming eStringTrimming);
93
94 DECLARE_MESSAGE_MAP()
95 virtual void PreSubclassWindow();
96 afx_msg LRESULT OnSetCheck(WPARAM wParam, LPARAM lParam);
97 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
98 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
99 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
100 afx_msg void OnMouseHover(UINT nFlags, CPoint point);
101 afx_msg void OnMouseLeave();
102 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
103 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
104 afx_msg void OnEnable(BOOL bEnable);
105 afx_msg void OnSetFocus(CWnd* pOldWnd);
106 afx_msg void OnKillFocus(CWnd* pNewWnd);
107
108 protected:
109 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) override;
110 virtual void DrawButton(CDC* pDC, const CRect& rect);
111 virtual void DrawText(CDC* pDC, CRect rect);
112
113 protected:
114 bool m_bTextAlignDirty;
115 EGUIAlignment m_eTextAlign;
116 EGUIStringTrimming m_eStringTrimming;
117 UINT m_uTextFormat;
118
119 UINT m_u32CheckState;
120 BOOL m_bCursorOnWnd;
121 BOOL m_bLButtonDown;
122 bool m_bEnable;
123 CPoint m_ptPrev;
124 };
125 }
126}
Button class.
Definition GUIRadioButton.h:29
CGUIRadioButton()
Default constructor.
void SetCheck(int32_t i32Check, bool bInvalidate=true)
Specify the check status.
int32_t GetCheck() const
Function that returns whether this is selected.
virtual ~CGUIRadioButton()
Default destructor.
EGUIStringTrimming
Cut option if string is out of layout square.
Definition GUIDefinitions.h:9360
EGUIAlignment
Alignment information.
Definition GUIDefinitions.h:9222