pub fn select_item(&self, item: &TreeItem) {
        use winapi::um::commctrl::{TVM_SETITEMW, TVIF_STATE};

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut tree_item = blank_item();
        tree_item.mask = TVIF_STATE;
        tree_item.hItem = item.handle;
        tree_item.state = TVIS_SELECTED;
        tree_item.stateMask = TVIS_SELECTED;

        wh::send_message(handle, TVM_SETITEMW, 0, &mut tree_item as *mut TVITEMW as LPARAM);
    }
/// Selects the specified tree-view item and scrolls the item into view.
Selects the specified tree-view item and scrolls the item into view.
Selects the specified tree - view item and scrolls the item into view .
pub fn select_item(&self, item: &TreeItem) {
        use winapi::um::commctrl::{TVM_SETITEMW, TVIF_STATE};
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut tree_item = blank_item();
        tree_item.mask = TVIF_STATE;
        tree_item.hItem = item.handle;
        tree_item.state = TVIS_SELECTED;
        tree_item.stateMask = TVIS_SELECTED;
        wh::send_message(handle, TVM_SETITEMW, 0, &mut tree_item as *mut TVITEMW as LPARAM);
    }
pub fn select_item ( & self , item : & TreeItem ) { use winapi :: um :: commctrl :: { TVM_SETITEMW , TVIF_STATE } ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let mut tree_item = blank_item ( ) ; tree_item . mask = TVIF_STATE ; tree_item . hItem = item . handle ; tree_item . state = TVIS_SELECTED ; tree_item . stateMask = TVIS_SELECTED ; wh :: send_message ( handle , TVM_SETITEMW , 0 , & mut tree_item as * mut TVITEMW as LPARAM ) ; }
Selects the specified tree-view item and scrolls the item into view.
Selects the specified tree - view item and scrolls the item into view .
&self
item
&TreeItem