Struct winsafe::gui::CheckBox [−][src]
pub struct CheckBox(_);
Expand description
Implementations
Instantiates a new CheckBox
object, to be created on the parent window
with HWND::CreateWindowEx
.
Instantiates a new CheckBox
object, to be loaded from a dialog
resource with HWND::GetDlgItem
.
Returns the underlying handle for this control.
Note: the handle is initially null, receiving an actual value
only after the control is physically created, what usually happens
right before
WM_CREATE
or
WM_INITDIALOG
events.
Focuses the control by sending a
wm::NextDlgCtl
message.
Exposes the subclass events. If at least one event exists, the control will be subclassed.
Note: Subclassing may impact performance, use with care.
Panics
Panics if the control or the parent window are already created. Events must be set before control and parent window creation.
Exposes the control events.
These event methods are just proxies to the
WindowEvents
of the parent
window, who is the real responsible for the child event handling.
Panics
Panics if the control or the parent window are already created. Events must be set before control and parent window creation.
Retrieves the current check state by sending a
bm::GetCheck
message.
Emulates the click event for the check box by sending a
bm::Click
message.
Calls check_state
and compares
the result with
CheckState::Checked
.
Resizes the control to exactly fit current text.
Sets the current check state by sending a
bm::SetCheck
message.
Sets the current check state by sending a
bm::SetCheck
message, then sends a
wm::Command
message to the parent, so it
can handle the event.
Calls set_text
and resizes the
control to exactly fit the new text.
Retrieves the text by calling
HWND::GetWindowText
.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more