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-14 09:59:55 -07:00
committed by GitHub
parent d1ee2d0749
commit 5154910c64
8 changed files with 117 additions and 87 deletions
+6 -2
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);
}
}