diff --git a/Cargo.toml b/Cargo.toml index 40f56ffa..6339020b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,7 +71,7 @@ core-graphics = "0.22.3" dispatch = "0.2.0" [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.36" +version = "0.42" features = [ "Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index cb57a3ca..70af126a 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -1037,7 +1037,7 @@ unsafe fn register_window_class( .map(|icon| icon.inner.as_raw_handle()) .unwrap_or(0); - use windows_sys::Win32::UI::WindowsAndMessaging::COLOR_WINDOWFRAME; + use windows_sys::Win32::Graphics::Gdi::COLOR_WINDOWFRAME; let class = WNDCLASSEXW { cbSize: mem::size_of::() as u32, style: CS_HREDRAW | CS_VREDRAW,