Struct winsafe::gui::WindowModalOpts [−][src]
pub struct WindowModalOpts {
pub class_name: String,
pub class_style: CS,
pub class_icon: HICON,
pub class_cursor: HCURSOR,
pub class_bg_brush: HBRUSH,
pub title: String,
pub size: SIZE,
pub style: WS,
pub ex_style: WS_EX,
}
Expand description
Options to create a WindowModal
programmatically
with WindowModal::new
.
Fields
class_name: String
Window class name to be registered.
Defaults to an auto-generated string.
class_style: CS
Window class styles to be registered.
Defaults to co::CS::DBLCLKS
.
class_icon: HICON
Window main icon to be registered.
Defaults to none.
class_cursor: HCURSOR
Window cursor to be registered.
Defaults to co::IDC::ARROW
.
class_bg_brush: HBRUSH
Window background brush to be registered.
Defaults to co::COLOR::BTNFACE
.
title: String
Window title to be created.
Defaults to empty string.
size: SIZE
Size of window client area, in pixels, to be created. Does not include title bar or borders.
Will be adjusted to match current system DPI.
Defaults to 500 x 400.
style: WS
Window styles to be created.
Defaults to WS::CAPTION | WS::SYSMENU | WS::CLIPCHILDREN | WS::BORDER | WS::VISIBLE
.
Suggestions:
WS::SIZEBOX
to make the window resizable;WS::MAXIMIZEBOX
to have a maximize button.
ex_style: WS_EX
Extended window styles to be created.
Defaults to WS_EX::LEFT | WS_EX::DLGMODALFRAME
.