#[repr(u32)]pub enum Modal {
Application = 0,
System = 4_096,
Task = 8_192,
}
Expand description
Specifies the modality of the dialog box.
Variants§
Application = 0
The user must respond to the message box before continuing work in the window identified by the hwnd
.
However, the user can move to the windows of other threads and work in those windows.
Depending on the hierarchy of windows in the application,
the user may be able to move to other windows within the thread.
All child windows of the parent of the message box are automatically disabled,
but pop-up windows are not.
System = 4_096
Same as Application
except that the message box has the WS_EX_TOPMOST
style.
Use system-modal message boxes to notify the user of serious,
potentially damaging errors that require immediate attention (for example, running out of memory).
This flag has no effect on the user’s ability to interact with windows other than those associated with hwnd
.
Task = 8_192
Same as Application
except that all the top-level windows belonging to the current thread are disabled
if the hwnd
parameter is 0
. Use this flag when the calling application
or library does not have a window handle available but still needs to prevent input to other windows in the calling thread
without suspending other threads.