pub fn destroy(&mut self) {
        match self {
            &mut ControlHandle::Hwnd(h) => wh::destroy_window(h),
            &mut ControlHandle::Menu(_parent, m) => wh::destroy_menu(m),
            &mut ControlHandle::MenuItem(parent, id) => wh::destroy_menu_item(parent, id),
            &mut ControlHandle::PopMenu(_parent, m) => wh::destroy_menu(m),
            _ => {}
        }

        *self = ControlHandle::NoHandle;
    }
/// Destroy the underlying object and set the handle to `NoHandle`
/// Can be used to "reset" a UI component
Destroy the underlying object and set the handle to `NoHandle`
Can be used to "reset" a UI component
Destroy the underlying object and set the handle to ` NoHandle ` Can be used to " reset " a UI component
pub fn destroy(&mut self) {
        match self {
            &mut ControlHandle::Hwnd(h) => wh::destroy_window(h),
            &mut ControlHandle::Menu(_parent, m) => wh::destroy_menu(m),
            &mut ControlHandle::MenuItem(parent, id) => wh::destroy_menu_item(parent, id),
            &mut ControlHandle::PopMenu(_parent, m) => wh::destroy_menu(m),
            _ => {}
        }
        *self = ControlHandle::NoHandle;
    }
pub fn destroy ( & mut self ) { match self { & mut ControlHandle :: Hwnd ( h ) => wh :: destroy_window ( h ) , & mut ControlHandle :: Menu ( _parent , m ) => wh :: destroy_menu ( m ) , & mut ControlHandle :: MenuItem ( parent , id ) => wh :: destroy_menu_item ( parent , id ) , & mut ControlHandle :: PopMenu ( _parent , m ) => wh :: destroy_menu ( m ) , _ => { } } * self = ControlHandle :: NoHandle ; }
Destroy the underlying object and set the handle to `NoHandle`
Can be used to "reset" a UI component
Destroy the underlying object and set the handle to ` NoHandle ` Can be used to " reset " a UI component
&mut self