[][src]Struct fpsdk::MessageBoxFlags

pub struct MessageBoxFlags { /* fields omitted */ }

Message box flags (see https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox).

Implementations

impl MessageBoxFlags[src]

pub const ABORTRETRYIGNORE: MessageBoxFlags[src]

The message box contains three push buttons: Abort, Retry, and Ignore.

pub const CANCELTRYCONTINUE: MessageBoxFlags[src]

The message box contains three push buttons: Cancel, Try Again, Continue. Use this message box type instead of ABORTRETRYIGNORE.

pub const HELP: MessageBoxFlags[src]

Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner.

pub const OK: MessageBoxFlags[src]

The message box contains one push button: OK. This is the default.

pub const OKCANCEL: MessageBoxFlags[src]

The message box contains two push buttons: OK and Cancel.

pub const RETRYCANCEL: MessageBoxFlags[src]

The message box contains two push buttons: Retry and Cancel.

pub const YESNO: MessageBoxFlags[src]

The message box contains two push buttons: Yes and No.

pub const YESNOCANCEL: MessageBoxFlags[src]

The message box contains three push buttons: Yes, No, and Cancel.

pub const ICONEXCLAMATION: MessageBoxFlags[src]

An exclamation-point icon appears in the message box.

pub const ICONWARNING: MessageBoxFlags[src]

An exclamation-point icon appears in the message box.

pub const ICONINFORMATION: MessageBoxFlags[src]

An icon consisting of a lowercase letter i in a circle appears in the message box.

pub const ICONASTERISK: MessageBoxFlags[src]

An icon consisting of a lowercase letter i in a circle appears in the message box.

pub const ICONQUESTION: MessageBoxFlags[src]

A question-mark icon appears in the message box. The question-mark message icon is no longer recommended because it does not clearly represent a specific type of message and because the phrasing of a message as a question could apply to any message type. In addition, users can confuse the message symbol question mark with Help information. Therefore, do not use this question mark message symbol in your message boxes. The system continues to support its inclusion only for backward compatibility.

pub const ICONSTOP: MessageBoxFlags[src]

A stop-sign icon appears in the message box.

pub const ICONERROR: MessageBoxFlags[src]

A stop-sign icon appears in the message box.

pub const ICONHAND: MessageBoxFlags[src]

A stop-sign icon appears in the message box.

pub const DEFBUTTON1: MessageBoxFlags[src]

The first button is the default button.

DEFBUTTON1 is the default unless DEFBUTTON2, DEFBUTTON3, or DEFBUTTON4 is specified.

pub const DEFBUTTON2: MessageBoxFlags[src]

The second button is the default button.

pub const DEFBUTTON3: MessageBoxFlags[src]

The third button is the default button.

pub const DEFBUTTON4: MessageBoxFlags[src]

The fourth button is the default button.

pub const APPLMODAL: MessageBoxFlags[src]

The user must respond to the message box before continuing work in the window identified by the hWnd parameter. 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.

APPLMODAL is the default if neither SYSTEMMODAL nor TASKMODAL is specified.

pub const SYSTEMMODAL: MessageBoxFlags[src]

Same as APPLMODAL 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.

pub const TASKMODAL: MessageBoxFlags[src]

Same as APPLMODAL except that all the top-level windows belonging to the current thread are disabled if the hWnd parameter is NULL. 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.

pub const DEFAULT_DESKTOP_ONLY: MessageBoxFlags[src]

Same as desktop of the interactive window station. For more information, see Window Stations.

If the current input desktop is not the default desktop, MessageBox does not return until the user switches to the default desktop.

pub const RIGHT: MessageBoxFlags[src]

The text is right-justified.

pub const RTLREADING: MessageBoxFlags[src]

Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems.

pub const SETFOREGROUND: MessageBoxFlags[src]

The message box becomes the foreground window. Internally, the system calls the SetForegroundWindow function for the message box.

pub const TOPMOST: MessageBoxFlags[src]

The message box is created with the WS_EX_TOPMOST window style.

pub const SERVICE_NOTIFICATION: MessageBoxFlags[src]

The caller is a service notifying the user of an event. The function displays a message box on the current active desktop, even if there is no user logged on to the computer.

Terminal Services: If the calling thread has an impersonation token, the function directs the message box to the session specified in the impersonation token.

If this flag is set, the hWnd parameter must be NULL. This is so that the message box can appear on a desktop other than the desktop corresponding to the hWnd.

For information on security considerations in regard to using this flag, see Interactive Services. In particular, be aware that this flag can produce interactive content on a locked desktop and should therefore be used for only a very limited set of scenarios, such as resource exhaustion.

pub const fn empty() -> MessageBoxFlags[src]

Returns an empty set of flags

pub const fn all() -> MessageBoxFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> isize[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: isize) -> Option<MessageBoxFlags>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: isize) -> MessageBoxFlags[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: isize) -> MessageBoxFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: MessageBoxFlags) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: MessageBoxFlags) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: MessageBoxFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: MessageBoxFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: MessageBoxFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: MessageBoxFlags, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl AsRawPtr for MessageBoxFlags[src]

impl Binary for MessageBoxFlags[src]

impl BitAnd<MessageBoxFlags> for MessageBoxFlags[src]

type Output = MessageBoxFlags

The resulting type after applying the & operator.

fn bitand(self, other: MessageBoxFlags) -> MessageBoxFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<MessageBoxFlags> for MessageBoxFlags[src]

fn bitand_assign(&mut self, other: MessageBoxFlags)[src]

Disables all flags disabled in the set.

impl BitOr<MessageBoxFlags> for MessageBoxFlags[src]

type Output = MessageBoxFlags

The resulting type after applying the | operator.

fn bitor(self, other: MessageBoxFlags) -> MessageBoxFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<MessageBoxFlags> for MessageBoxFlags[src]

fn bitor_assign(&mut self, other: MessageBoxFlags)[src]

Adds the set of flags.

impl BitXor<MessageBoxFlags> for MessageBoxFlags[src]

type Output = MessageBoxFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: MessageBoxFlags) -> MessageBoxFlags[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<MessageBoxFlags> for MessageBoxFlags[src]

fn bitxor_assign(&mut self, other: MessageBoxFlags)[src]

Toggles the set of flags.

impl Clone for MessageBoxFlags[src]

impl Copy for MessageBoxFlags[src]

impl Debug for MessageBoxFlags[src]

impl Eq for MessageBoxFlags[src]

impl Extend<MessageBoxFlags> for MessageBoxFlags[src]

impl FromIterator<MessageBoxFlags> for MessageBoxFlags[src]

impl Hash for MessageBoxFlags[src]

impl LowerHex for MessageBoxFlags[src]

impl Not for MessageBoxFlags[src]

type Output = MessageBoxFlags

The resulting type after applying the ! operator.

fn not(self) -> MessageBoxFlags[src]

Returns the complement of this set of flags.

impl Octal for MessageBoxFlags[src]

impl Ord for MessageBoxFlags[src]

impl PartialEq<MessageBoxFlags> for MessageBoxFlags[src]

impl PartialOrd<MessageBoxFlags> for MessageBoxFlags[src]

impl StructuralEq for MessageBoxFlags[src]

impl StructuralPartialEq for MessageBoxFlags[src]

impl Sub<MessageBoxFlags> for MessageBoxFlags[src]

type Output = MessageBoxFlags

The resulting type after applying the - operator.

fn sub(self, other: MessageBoxFlags) -> MessageBoxFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<MessageBoxFlags> for MessageBoxFlags[src]

fn sub_assign(&mut self, other: MessageBoxFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for MessageBoxFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.