windows: Update crate Windows from 0.53 to 0.56 (#11662)

Version 0.56 has fixed many of the previous bugs, and one of the bugs
prevent me implementing some functions.

Release Notes:

- N/A
This commit is contained in:
张小白 2024-05-15 00:59:55 +08:00 committed by GitHub
parent d1ee2d0749
commit 5154910c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 117 additions and 87 deletions

View file

@ -114,7 +114,9 @@ impl WindowsPlatform {
None,
HRGN::default(),
RDW_INVALIDATE | RDW_UPDATENOW,
);
)
.ok()
.log_err();
}
}
}
@ -219,7 +221,9 @@ impl Platform for WindowsPlatform {
}
WM_SETTINGCHANGE => self.update_system_settings(),
_ => {
TranslateMessage(&msg);
// todo(windows)
// crate `windows 0.56` reports true as Err
TranslateMessage(&msg).as_bool();
DispatchMessageW(&msg);
}
}