#include <HWStdCtrls.h>
Public Types | |
using | Base = ButtonBase |
![]() | |
using | Base = Control |
Public Member Functions | |
HW_EXPORT | StateButton () |
HW_EXPORT StateButton & | SetCheckState (Windows::CheckState theCheckState) |
HW_EXPORT Windows::CheckState | CheckState () const |
HW_EXPORT bool | AllowGrayed () const |
HW_EXPORT StateButton & | SetAllowGrayed (bool theValue=true) |
HW_EXPORT bool | Checked () const |
HW_EXPORT StateButton & | SetChecked (bool theValue) |
HW_EXPORT StateButton & | Toggle () |
virtual HW_EXPORT void | HandleMessage (Message &message) |
![]() | |
HW_EXPORT | ButtonBase () |
HW_EXPORT bool | AutoEllipsis () const |
HW_EXPORT ButtonBase & | SetAutoEllipsis (bool theValue) |
HW_EXPORT ButtonBase & | Click () |
HW_EXPORT const ButtonBase & | GetTextMargin (RECT &margin) const |
HW_EXPORT RECT | GetTextMargin () const |
HW_EXPORT ButtonBase & | SetTextMargin (const RECT &margin) |
HW_EXPORT const ButtonBase & | GetIdealSize (SIZE &preferredSize) const |
HW_EXPORT SIZE | GetIdealSize () const |
![]() | |
HW_EXPORT | Control () |
virtual HW_EXPORT | ~Control () |
HW_EXPORT bool | IsChild () const |
HW_EXPORT bool | IsToplevel () const |
HW_EXPORT bool | IsPopup () const |
HW_EXPORT bool | Enabled () const |
HW_EXPORT Control & | SetEnabled (bool theValue) |
HW_EXPORT bool | Visible () const |
HW_EXPORT Control & | SetVisible (bool theValue) |
HW_EXPORT bool | TabStop () const |
HW_EXPORT Control & | SetTabStop (bool theValue) |
HW_EXPORT long | Id () const |
HW_EXPORT Control & | SetId (long theValue) |
HW_EXPORT Control & | SubClass (HWND hWnd) |
HW_EXPORT bool | IsSubClassed () const |
HW_EXPORT HWND | GetHandle () const |
bool | IsHandleCreated () const |
HW_EXPORT const Control & | GetClientRect (RECT *rectangle) const |
HW_EXPORT const Control & | GetClientRect (RECT &rectangle) const |
HW_EXPORT RECT | GetClientRect () const |
HW_EXPORT D2D1_SIZE_F | ClientSize () const |
HW_EXPORT UInt32 | GetDotsPerInch () const |
void | ScreenToClient (POINT &pt) const |
void | ClientToScreen (POINT &pt) const |
HW_EXPORT Control & | SetParent (Control *parentControl) |
const Windows::Controls & | Controls () const |
Windows::Controls & | Controls () |
Control * | Parent () const |
bool | HasParent () const |
HDC | BeginPaint (PAINTSTRUCT &paintStruct) const |
void | EndPaint (const PAINTSTRUCT &paintStruct) const |
HW_EXPORT const Control & | UpdateRect (RECT &updateRectangle) const |
HW_EXPORT Control & | UpdateRect (RECT &updateRectangle, bool erase) |
HW_EXPORT RECT | UpdateRect () const |
HW_EXPORT RECT | UpdateRect (bool erase) |
HW_EXPORT bool | IsChildOf (const Control &parentControl) const |
HW_EXPORT bool | IsChildOf (HWND parentControl) const |
HW_EXPORT bool | IsParentOf (const Control &childControl) const |
HW_EXPORT bool | IsParentOf (HWND childControl) const |
HW_EXPORT bool | IsValid () const |
HW_EXPORT bool | IsVisible () const |
HW_EXPORT Control & | InvalidateRect (bool erase=false) |
HW_EXPORT Control & | InvalidateRect (const RECT &rectangle, bool erase=false) |
HW_EXPORT Control & | MoveWindow (int x, int y, int width, int height, bool repaint=false) |
HW_EXPORT LONG | SetWindowLong (int index, LONG newValue) |
HW_EXPORT LONG | GetWindowLong (int index) const |
HW_EXPORT LRESULT | SendMessage (UINT Msg, WPARAM wParam=0, LPARAM lParam=0) const |
HW_EXPORT const Control & | PostMessage (UINT Msg, WPARAM wParam=0, LPARAM lParam=0) const |
HW_EXPORT int | TextLength () const |
HW_EXPORT WideString | Text () const |
HW_EXPORT bool | SetText (const WideString &text) |
HW_EXPORT bool | SetText (const wchar_t *text) |
HW_EXPORT bool | Show () |
HW_EXPORT bool | ValidateRect (const RECT &rectangle) |
HW_EXPORT bool | ValidateRect () |
const Windows::Size & | Size () const |
HW_EXPORT Control & | SetSize (int width, int height) |
HW_EXPORT Control & | SetSize (const Windows::Size &theSize) |
const Point & | Position () const |
HW_EXPORT Control & | SetPosition (int x, int y) |
HW_EXPORT Control & | SetPosition (const Point &thePosition) |
HWND | SetFocus () const |
HW_EXPORT Control & | Initialize () |
HW_EXPORT Control & | Initialize (Control *owner) |
Public Attributes | |
boost::signals2::signal< void(Control *sender, Windows::CheckState theCheckState)> | OnCheckStateChanged |
![]() | |
boost::signals2::signal< void(Control *sender)> | OnClick |
![]() | |
boost::signals2::signal< void(Control *sender)> | OnHandleCreated |
boost::signals2::signal< void(Control *sender)> | OnBeforeHandleDestroy |
boost::signals2::signal< void(Control *sender, Message &message)> | OnCancelMode |
boost::signals2::signal< void(Control *sender, Message &message)> | OnChar |
boost::signals2::signal< void(Control *sender, Message &message)> | OnCharToItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnClose |
boost::signals2::signal< void(Control *sender, Message &message)> | OnCompareItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnCommand |
boost::signals2::signal< void(Control *sender, Message &message)> | OnCopyData |
boost::signals2::signal< void(Control *sender, Message &message)> | OnDeadChar |
boost::signals2::signal< void(Control *sender, Message &message)> | OnDeleteItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnDestroy |
boost::signals2::signal< void(Control *sender, Message &message)> | OnDisplayChange |
boost::signals2::signal< void(Control *sender, Message &message)> | OnDrawItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnEnable |
boost::signals2::signal< void(Control *sender, Message &message)> | OnEnterSizeMove |
boost::signals2::signal< void(Control *sender, Message &message)> | OnEraseBackground |
boost::signals2::signal< void(Control *sender, Message &message)> | OnExitSizeMove |
boost::signals2::signal< void(Control *sender, Message &message)> | OnGetHotKey |
boost::signals2::signal< void(Control *sender, Message &message)> | OnGetText |
boost::signals2::signal< void(Control *sender, Message &message)> | OnGetTextLength |
boost::signals2::signal< void(Control *sender, Message &message)> | OnInitMenu |
boost::signals2::signal< void(Control *sender, Message &message)> | OnInitMenuPopup |
boost::signals2::signal< void(Control *sender, Message &message)> | OnKeyDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnKeyUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnKillFocus |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMeasureItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMenuCommand |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseMove |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseLeftButtonDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseLeftButtonUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseLeftButtonDoubleClick |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseMiddleButtonDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseMiddleButtonUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseMiddleButtonDoubleClick |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseRightButtonDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseRightButtonUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseRightButtonDoubleClick |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseXButtonDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseXButtonUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseXButtonDoubleClick |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMouseWheel |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMove |
boost::signals2::signal< void(Control *sender, Message &message)> | OnMoving |
boost::signals2::signal< void(Control *sender, Message &message)> | OnNcActivate |
boost::signals2::signal< void(Control *sender, Message &message)> | OnNcCalcSize |
boost::signals2::signal< void(Control *sender, Message &message)> | OnNcDestroy |
boost::signals2::signal< void(Control *sender, Message &message)> | OnNotify |
boost::signals2::signal< void(Control *sender, Message &message)> | OnPaint |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSetCursor |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSetFocus |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSetHotKey |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSetRedraw |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSetText |
boost::signals2::signal< void(Control *sender, Message &message)> | OnShowWindow |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSize |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSizing |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSysChar |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSysCommand |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSysDeadChar |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSysKeyDown |
boost::signals2::signal< void(Control *sender, Message &message)> | OnSysKeyUp |
boost::signals2::signal< void(Control *sender, Message &message)> | OnUniChar |
boost::signals2::signal< void(Control *sender, Message &message)> | OnVKeyToItem |
boost::signals2::signal< void(Control *sender, Message &message)> | OnWindowPosChanging |
boost::signals2::signal< void(Control *sender, Message &message)> | OnWindowPosChanged |
Private Attributes | |
CheckState | checkState_ |
bool | allowGrayed_ |
Additional Inherited Members | |
![]() | |
static HW_EXPORT void | RegisterControl (HWND hWnd, Control *constrol) |
static HW_EXPORT void | UnregisterControl (HWND hWnd) |
static HW_EXPORT Control * | GetControlFromHWND (HWND hWnd) |
![]() | |
static HW_EXPORT UINT | REFLECTED_WM_COMMAND = RegisterWindowMessageW( L"Control::REFLECTED_WM_COMMAND" ) |
static HW_EXPORT UINT | REFLECTED_WM_NOTIFY = RegisterWindowMessageW( L"Control::REFLECTED_WM_NOTIFY" ) |
static HW_EXPORT UINT | REFLECTED_WM_DRAWITEM = RegisterWindowMessageW( L"Control::REFLECTED_WM_DRAWITEM" ) |
static HW_EXPORT UINT | WM_GET_CONTROL = RegisterWindowMessageW( L"Control::WM_GET_CONTROL" ) |
Harlinn::Windows::StateButton::StateButton | ( | ) |
bool Harlinn::Windows::StateButton::AllowGrayed | ( | ) | const |
bool Harlinn::Windows::StateButton::Checked | ( | ) | const |
Windows::CheckState Harlinn::Windows::StateButton::CheckState | ( | ) | const |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from Harlinn::Windows::ButtonBase.
|
protectedvirtual |
Reimplemented from Harlinn::Windows::Control.
|
virtual |
Reimplemented from Harlinn::Windows::Control.
StateButton & Harlinn::Windows::StateButton::SetAllowGrayed | ( | bool | theValue = true | ) |
StateButton & Harlinn::Windows::StateButton::SetChecked | ( | bool | theValue | ) |
StateButton & Harlinn::Windows::StateButton::SetCheckState | ( | Windows::CheckState | theCheckState | ) |
StateButton & Harlinn::Windows::StateButton::Toggle | ( | ) |
|
private |
|
private |
boost::signals2::signal<void( Control* sender, Windows::CheckState theCheckState )> Harlinn::Windows::StateButton::OnCheckStateChanged |