Struct winsafe::gui::ProgressBar [−][src]
pub struct ProgressBar(_);
Expand description
Native progress bar control.
Implements Child
trait.
Implementations
Instantiates a new ProgressBar
object, to be created on the parent
window with HWND::CreateWindowEx
.
Instantiates a new ProgressBar
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.
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.
Retrieves the current position by sending a
pbm::GetPos
message.
Retrieves the current minimum and maximum values by sending a
pbm::GetRange
message. Default values are
0 and 100.
Sets or unsets the marquee mode by sending a
pbm::SetMarquee
message combined with a
SetWindowLongPtr
call for a style
change.
Sets the current position by sending a
pbm::SetPos
message, returning the previous
position.
Sets the minimum and maximum values by sending a
pbm::SetRange32
message. Default values
are 0 and 100.
Sets the current state by sending a
pbm::SetState
message, retuning the
previous state.
Retrieves the current state by sending a
pbm::GetState
message.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more