Function native_windows_gui::full_bind_event_handler
source · [−]pub fn full_bind_event_handler<F>(handle: &ControlHandle, f: F) -> EventHandlerwhere
F: Fn(Event, EventData, ControlHandle) + 'static,
Expand description
Hook the window subclass with the default event dispatcher. The hook is applied to the window and all it’s children (recursively).
Returns a EventHandler
that can be passed to unbind_event_handler
to remove the callbacks.
This function will panic if handle
is not a window handle.