Trait winsafe::prelude::GuiNativeControl
source · pub trait GuiNativeControl: GuiChild + AsRef<BaseNativeControl> {
// Provided method
fn on_subclass(&self) -> &WindowEvents { ... }
}
Available on crate features
kernel
and gui
only.Expand description
Any native control, which can be subclassed.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn on_subclass(&self) -> &WindowEvents
fn on_subclass(&self) -> &WindowEvents
Exposes the subclass events. If at least one event exists, the control will be subclassed.
Note: Subclassing may impact performance, use with care.
§Panics
Panics if the control or the parent window are already created. Events must be set before control and parent window creation.