pub unsafe fn on_nccreate(&mut self, window: HWND) -> Option<isize> {
        let runner = self.event_loop.runner_shared.clone();
        let result = runner.catch_unwind(|| {
            let window = self.create_window(window);
            let window_data = self.create_window_data(&window);
            (window, window_data)
        });

        result.map(|(win, userdata)| {
            self.window = Some(win);
            let userdata = Box::into_raw(Box::new(userdata));
            userdata as _
        })
    }
// Returns a pointer to window user data on success.
// The user data will be registered for the window and can be accessed within the window event callback.
Returns a pointer to window user data on success.
The user data will be registered for the window and can be accessed within the window event callback.
Returns a pointer to window user data on success . The user data will be registered for the window and can be accessed within the window event callback .
pub unsafe fn on_nccreate(&mut self, window: HWND) -> Option<isize> {
        let runner = self.event_loop.runner_shared.clone();
        let result = runner.catch_unwind(|| {
            let window = self.create_window(window);
            let window_data = self.create_window_data(&window);
            (window, window_data)
        });
        result.map(|(win, userdata)| {
            self.window = Some(win);
            let userdata = Box::into_raw(Box::new(userdata));
            userdata as _
        })
    }
pub unsafe fn on_nccreate ( & mut self , window : HWND ) -> Option < isize > { let runner = self . event_loop . runner_shared . clone ( ) ; let result = runner . catch_unwind ( | | { let window = self . create_window ( window ) ; let window_data = self . create_window_data ( & window ) ; ( window , window_data ) } ) ; result . map ( | ( win , userdata ) | { self . window = Some ( win ) ; let userdata = Box :: into_raw ( Box :: new ( userdata ) ) ; userdata as _ } ) }
Returns a pointer to window user data on success.
Returns a pointer to window user data on success .
&mut self
window
HWND