1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use super::Options;
use windows_sys::Win32::UI::WindowsAndMessaging::{MB_OK, MESSAGEBOX_RESULT, MESSAGEBOX_STYLE};
/// The message box contains one push button: `OK`.
#[derive(Debug, Eq, PartialEq, Clone, Copy, Hash)]
pub struct Okay;
impl From<MESSAGEBOX_RESULT> for Okay {
fn from(_: MESSAGEBOX_RESULT) -> Self {
Self
}
}
impl Options for Okay {
fn flags() -> MESSAGEBOX_STYLE {
MB_OK
}
}