diff --git a/dialogs/src/base.rs b/dialogs/src/base.rs index b78b8f130..6bf8e414f 100644 --- a/dialogs/src/base.rs +++ b/dialogs/src/base.rs @@ -692,6 +692,8 @@ pub enum Style { WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, + WS_MINIMIZEBOX, + WS_MAXIMIZEBOX, /// Necessary on Windows to make it a top-level window. WS_OVERLAPPEDWINDOW, DS_CONTROL, diff --git a/dialogs/src/empty_panel.rs b/dialogs/src/empty_panel.rs index 7d3f1d9cc..9e4a3c10e 100644 --- a/dialogs/src/empty_panel.rs +++ b/dialogs/src/empty_panel.rs @@ -8,17 +8,14 @@ pub fn create(context: ScopedContext, ids: &mut IdGenerator) -> Dialog { caption: "Editor", rect: context.rect(0, 0, 600, 250), styles: Styles(vec![ - DS_SETFONT, - // DS_MODALFRAME, - DS_3DLOOK, - DS_FIXEDSYS, + // Places the window into the center by default DS_CENTER, - WS_POPUP, - WS_VISIBLE, - WS_CAPTION, + // Displays a close button WS_SYSMENU, + // Displays a maximize button + WS_MAXIMIZEBOX, + // Allows user to change size of window WS_THICKFRAME, - WS_OVERLAPPEDWINDOW, ]), ..context.default_dialog() }