pub fn close_window(window: WindowHandle, wait: bool) -> Result<()>Expand description
Sends WM_CLOSE to window, as if its close button was pressed.
With wait the call blocks until the window procedure handled the message (for example
until the user answers a “save changes?” dialog).