We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ee5a1f commit d996d7dCopy full SHA for d996d7d
1 file changed
src/wrappers/win32/window.rs
@@ -94,10 +94,10 @@ pub fn create_window<W: WindowImpl>(
94
95
#[cfg(feature = "opengl")]
96
pub fn with_dummy_window<T>(handler: impl FnOnce(HWnd) -> Result<T>) -> Result<T> {
97
- use windows_sys::Win32::UI::WindowsAndMessaging::CW_USEDEFAULT;
+ use windows_sys::Win32::UI::WindowsAndMessaging::{DefWindowProcW, CW_USEDEFAULT};
98
99
let instance = HInstance::get_from_dll();
100
- let window_class = RegisteredClass::register_new(instance, None)?;
+ let window_class = RegisteredClass::register_new(instance, Some(DefWindowProcW))?;
101
let hwnd = unsafe {
102
CreateWindowExW(
103
0,
0 commit comments