系统复选框控件
更多...
#include <SysCheckBox.h>
|
| SysCheckBox () |
|
| SysCheckBox (HWND hParent, RECT rct, std::wstring strText=L"") |
|
| SysCheckBox (HWND hParent, int x, int y, int w, int h, std::wstring strText=L"") |
|
LRESULT | UpdateMessage (UINT msg, WPARAM wParam, LPARAM lParam, bool &bRet) override |
| 更新消息,此函数无需用户调用 更多...
|
|
void | RegisterMessage (void(*pFunc)(bool checked)) |
| 注册点击消息 更多...
|
|
bool | IsChecked () const |
| 获取选中状态 更多...
|
|
void | Check (bool check) |
|
| SysControlBase () |
|
virtual | ~SysControlBase () |
|
void | UpdateRect (RECT rctOld) override |
| 响应更新区域消息 更多...
|
|
HWND | Create (HWND hParent, RECT rct, std::wstring strText=L"") |
|
HWND | Create (HWND hParent, int x, int y, int w, int h, std::wstring strText=L"") |
|
void | Remove () |
| 移除控件 更多...
|
|
HWND | GetHandle () const |
|
SysControlType | GetControlType () const |
| 获取此控件类型 更多...
|
|
bool | IsEnable () |
|
void | Enable (bool enable) |
|
bool | IsVisible () |
|
void | Show (bool show) |
|
bool | IsFocused () |
|
void | SetFocus (bool focused) |
|
int | GetTextLength () |
|
std::wstring | GetText () |
|
void | SetText (std::wstring wstr) |
|
HFONT | GetFont () |
|
void | SetFont (int h, int w=0, std::wstring typeface=L"") |
|
int | GetID () |
|
| Container () |
|
virtual | ~Container () |
|
RECT | GetRect () const |
|
void | SetRect (int x, int y, int w, int h) |
| 设置位置和宽高 更多...
|
|
void | SetRect (RECT rct) |
| 设置矩形区域 更多...
|
|
POINT | GetPos () const |
|
int | GetX () const |
|
int | GetY () const |
|
void | SetPos (int x, int y) |
|
void | SetPos (POINT pt) |
|
void | Move (int x, int y) |
|
void | MoveRel (int dx, int dy) |
|
int | GetWidth () const |
|
void | SetWidth (int w) |
|
int | GetHeight () const |
|
void | SetHeight (int h) |
|
void | Resize (int w, int h) |
|
|
void | RealCreate (HWND hParent) override |
| 实际调用的创建控件函数(各种控件实现不同,但内部都调用 CreateControl 创建控件) 更多...
|
|
HWND | CreateControl (HWND hParent, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle) |
| 创建控件 更多...
|
|
系统复选框控件
在文件 SysCheckBox.h 第 16 行定义.
◆ SysCheckBox() [1/3]
HiEasyX::SysCheckBox::SysCheckBox |
( |
| ) |
|
◆ SysCheckBox() [2/3]
HiEasyX::SysCheckBox::SysCheckBox |
( |
HWND |
hParent, |
|
|
RECT |
rct, |
|
|
std::wstring |
strText = L"" |
|
) |
| |
◆ SysCheckBox() [3/3]
HiEasyX::SysCheckBox::SysCheckBox |
( |
HWND |
hParent, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
std::wstring |
strText = L"" |
|
) |
| |
◆ Check()
void HiEasyX::SysCheckBox::Check |
( |
bool |
check | ) |
|
◆ IsChecked()
bool HiEasyX::SysCheckBox::IsChecked |
( |
| ) |
const |
|
inline |
◆ RealCreate()
void HiEasyX::SysCheckBox::RealCreate |
( |
HWND |
hParent | ) |
|
|
overrideprotectedvirtual |
◆ RegisterMessage()
void HiEasyX::SysCheckBox::RegisterMessage |
( |
void(*)(bool checked) |
pFunc | ) |
|
◆ UpdateMessage()
LRESULT HiEasyX::SysCheckBox::UpdateMessage |
( |
UINT |
msg, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam, |
|
|
bool & |
bRet |
|
) |
| |
|
overridevirtual |
该类的文档由以下文件生成: