FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingFoundation
FLImagingGUI
GUICheckBox.h
1
#pragma once
2
10
11
#include <afxwin.h>
12
#include "GUIWndCtrlBase.h"
13
#include "GUIStyledCtrlBase.h"
14
16
namespace
FLImaging
17
{
19
namespace
GUI
20
{
28
class
FL_EXPORT
CGUICheckBox
:
public
CButton,
public
CGUIWndCtrlBase,
public
CGUIStyledCtrlBase
29
{
30
public
:
37
CGUICheckBox
();
38
45
virtual
~CGUICheckBox
();
46
55
virtual
void
SetCheckColor
(COLORREF clrCheckColor);
56
65
virtual
COLORREF
GetCheckColor
()
const
;
66
75
void
SetCheck
(
bool
bCheck);
76
85
bool
GetCheck
()
const
;
86
95
virtual
void
SetEnable
(
bool
bEnable);
96
97
protected
:
98
virtual
void
DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
override
;
99
virtual
void
DrawButton(CDC* pDC,
const
CRect& rect,
const
int32_t& i32CheckBoxMargin,
const
int32_t& i32CheckBoxSize);
100
virtual
void
DrawText(CDC* pDC,
const
CRect& rect,
const
int32_t& i32CheckBoxMargin,
const
int32_t& i32CheckBoxSize);
101
102
protected
:
103
UINT m_u32Style;
104
UINT m_u32CheckState;
105
106
DECLARE_MESSAGE_MAP()
107
public:
108
afx_msg BOOL OnBnClicked();
109
afx_msg
void
OnMouseHover(UINT nFlags, CPoint point);
110
afx_msg
void
OnMouseLeave();
111
afx_msg
void
OnMouseMove(UINT nFlags, CPoint point);
112
afx_msg
void
OnSetFocus(CWnd* pOldWnd);
113
afx_msg
void
OnKillFocus(CWnd* pNewWnd);
114
afx_msg
int
OnCreate(LPCREATESTRUCT lpCreateStruct);
115
virtual
void
PreSubclassWindow();
116
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
117
afx_msg
void
OnSize(UINT nType,
int
cx,
int
cy);
118
afx_msg
void
OnDestroy();
119
afx_msg
void
OnEnable(BOOL bEnable);
120
};
121
}
122
}
FLImaging::GUI::CGUICheckBox::SetCheckColor
virtual void SetCheckColor(COLORREF clrCheckColor)
Set the color of check.
FLImaging::GUI::CGUICheckBox::GetCheckColor
virtual COLORREF GetCheckColor() const
Get the color of check.
FLImaging::GUI::CGUICheckBox::CGUICheckBox
CGUICheckBox()
Default constructor.
FLImaging::GUI::CGUICheckBox::SetEnable
virtual void SetEnable(bool bEnable)
Function to specify whether button window is enabled.
FLImaging::GUI::CGUICheckBox::~CGUICheckBox
virtual ~CGUICheckBox()
Default destructor.
FLImaging::GUI::CGUICheckBox::SetCheck
void SetCheck(bool bCheck)
Specify the check status.
FLImaging::GUI::CGUICheckBox::GetCheck
bool GetCheck() const
Function that returns whether the check box is checked.
FLImaging::GUI
Definition
D2DObject.h:12
FLImaging
Generated on
for FLImaging by
1.17.0