|
| SysGroupBox () |
|
| SysGroupBox (HWND hParent, RECT rct, std::wstring strText=L"") |
|
| SysGroupBox (HWND hParent, int x, int y, int w, int h, std::wstring strText=L"") |
|
| SysControlBase () |
|
virtual | ~SysControlBase () |
|
void | UpdateRect (RECT rctOld) override |
| 响应更新区域消息 更多...
|
|
virtual LRESULT | UpdateMessage (UINT msg, WPARAM wParam, LPARAM lParam, bool &bRet) |
| 更新消息,此函数无需用户调用 更多...
|
|
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) |
|
系统分组框控件
注意:
创建控件时不要将此控件作为父控件,否则无法创建控件
- Bug:
- 分组框背景绘制有 Bug,请斟酌使用
在文件 SysGroupBox.h 第 24 行定义.