Comment to describe message order
This commit is contained in:
parent
8f03fb7a34
commit
d868510cc8
1 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,8 @@ impl Drop for Window {
|
|||
#[inline]
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
// We are sending WM_CLOSE, and our callback will process this by calling DefWindowProcW,
|
||||
// which in turn will send a WM_DESTROY.
|
||||
user32::PostMessageW(self.window.0, winapi::WM_CLOSE, 0, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue