FLImaging 7.3.16.1
GUIRadioButton.h
1#pragma once
2
10
11#include <afxwin.h>
12#include "GUIWndCtrlBase.h"
13#include "GUIStyledCtrlBase.h"
14#include "DefinitionsGUI.h"
15
17namespace FLImaging
18{
20 namespace GUI
21 {
29 class FL_EXPORT CGUIRadioButton : public CButton, public CGUIWndCtrlBase, public CGUIStyledCtrlBase
30 {
31 public:
39
47
48 public:
60 void SetCheck(int32_t i32Check, bool bInvalidate = true);
61
70 int32_t GetCheck() const;
71
79 virtual void Enable(bool bEnable);
80
81 DECLARE_MESSAGE_MAP()
82 virtual void PreSubclassWindow();
83 afx_msg LRESULT OnSetCheck(WPARAM wParam, LPARAM lParam);
84 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
85 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
86 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
87 afx_msg void OnMouseHover(UINT nFlags, CPoint point);
88 afx_msg void OnMouseLeave();
89 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
90 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
91 afx_msg void OnEnable(BOOL bEnable);
92 afx_msg void OnSetFocus(CWnd* pOldWnd);
93 afx_msg void OnKillFocus(CWnd* pNewWnd);
94
95 protected:
96 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) override;
97 virtual void DrawButton(CDC* pDC, const CRect& rect);
98 virtual void DrawText(CDC* pDC, CRect rect);
99
100 protected:
101 UINT m_u32CheckState;
102 };
103 }
104}
virtual void Enable(bool bEnable)
버튼의 활성 여부를 지정하는 함수
CGUIRadioButton()
기본 생성자
void SetCheck(int32_t i32Check, bool bInvalidate=true)
선택 상태를 지정하는 함수
int32_t GetCheck() const
선택되었는지 여부를 반환하는 함수
virtual ~CGUIRadioButton()
기본 소멸자
Definition D2DObject.h:12