pub struct SW(/* private fields */);
kernel
only.Expand description
HWND::ShowWindow
show_cmd
(i32
).
Implementations§
source§impl SW
impl SW
sourcepub const unsafe fn from_raw(v: i32) -> Self
pub const unsafe fn from_raw(v: i32) -> Self
Constructs a new object by wrapping the given integer value.
§Safety
Be sure the given value is meaningful for the actual type.
sourcepub const fn raw(&self) -> i32
pub const fn raw(&self) -> i32
Returns the primitive integer underlying value.
This method is similar to Into
, but it
is const
, therefore it can be used in
const contexts.
source§impl SW
impl SW
sourcepub const SHOWNORMAL: Self = _
pub const SHOWNORMAL: Self = _
Activates and displays a window. If the window is minimized or maximized the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
sourcepub const SHOWMINIMIZED: Self = _
pub const SHOWMINIMIZED: Self = _
Activates the window and displays it as a minimized window.
sourcepub const SHOWMAXIMIZED: Self = _
pub const SHOWMAXIMIZED: Self = _
Activates the window and displays it as a maximized window.
sourcepub const SHOWNOACTIVATE: Self = _
pub const SHOWNOACTIVATE: Self = _
Displays a window in its most recent size and position. This value is
similar to SW::SHOWNORMAL
except that the window is not activated.
sourcepub const SHOW: Self = _
pub const SHOW: Self = _
Activates the window and displays it in its current size and position.
sourcepub const MINIMIZE: Self = _
pub const MINIMIZE: Self = _
Minimizes the specified window and activates the next top-level window in the Z order.
sourcepub const SHOWMINNOACTIVE: Self = _
pub const SHOWMINNOACTIVE: Self = _
Displays the window as a minimized window. This value is similar to
SW::SHOWMINIMIZED
except the window is not activated.
pub const SHOWNA: Self = _
sourcepub const RESTORE: Self = _
pub const RESTORE: Self = _
Activates and displays the window. If the window is minimized or maximized the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
sourcepub const SHOWDEFAULT: Self = _
pub const SHOWDEFAULT: Self = _
Sets the show state based on the SW value specified in the
STARTUPINFO
structure passed to the
HPROCESS::CreateProcess
function by the program that started the application.
sourcepub const FORCEMINIMIZE: Self = _
pub const FORCEMINIMIZE: Self = _
Minimizes a window even if the thread that owns the window is not responding. This flag should only be used when minimizing windows from a different thread.