FLImaging 7.1.24.1
GUICheckBox.h
1#pragma once
2
10
11#include <afxwin.h>
12#include "GUIWndCtrlBase.h"
13
15namespace FLImaging
16{
18 namespace GUI
19 {
27 class FL_EXPORT CGUICheckBox : public CButton, public CGUIWndCtrlBase
28 {
29 public:
37
44 virtual ~CGUICheckBox();
45
54 virtual void SetCheckColor(COLORREF clrCheckColorDefault);
55
64 virtual COLORREF GetCheckColor()const;
65
74 void SetCheck(bool bCheck);
75
84 bool GetCheck()const;
85
94 virtual void SetEnable(bool bEnable);
95
104 virtual bool IsEnabled()const;
105
106 DECLARE_MESSAGE_MAP()
107 afx_msg BOOL OnBnClicked();
108 afx_msg void OnSetFocus(CWnd* pOldWnd);
109 afx_msg void OnKillFocus(CWnd* pNewWnd);
110 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
111 virtual void PreSubclassWindow();
112
113 protected:
114 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) override;
115 virtual void DrawButton(CDC* pDC, const CRect& rect, const int32_t& i32CheckBoxMargin, const int32_t& i32CheckBoxSize);
116 virtual void DrawText(CDC* pDC, const CRect& rect, const int32_t& i32CheckBoxMargin, const int32_t& i32CheckBoxSize);
117 virtual void DrawRectangleBorder(CDC* pDC, const CRect& rect, COLORREF clr)override;
118
119 protected:
120 UINT m_u32Style;
121 UINT m_u32CheckState;
122 COLORREF m_clrCheckBox;
123 COLORREF m_clrCheck;
124 Gdiplus::Color m_crCheck;
125 bool m_bEnable;
126 COLORREF m_clrCheckDefault;
127
128 public:
129 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
130 afx_msg void OnSize(UINT nType, int cx, int cy);
131 afx_msg void OnDestroy();
132};
133 }
134}
virtual COLORREF GetCheckColor() const
체크 색상 얻기
CGUICheckBox()
기본 생성자
virtual void SetEnable(bool bEnable)
버튼 윈도우의 활성 여부를 지정하는 함수
virtual ~CGUICheckBox()
기본 소멸자
void SetCheck(bool bCheck)
체크 상태를 지정하는 함수
virtual void SetCheckColor(COLORREF clrCheckColorDefault)
체크 색상 설정
bool GetCheck() const
체크박스가 체크되었는지 여부를 반환하는 함수
virtual bool IsEnabled() const
버튼의 활성 여부를 얻는 함수
Definition D2DObject.h:12