win_msgbox/
okay.rs

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