pub fn selected_item(&self) -> Option<TreeItem> {
        use winapi::um::commctrl::{TVM_GETNEXTITEM, TVGN_NEXTSELECTED};

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let tree_handle = wh::send_message(handle, TVM_GETNEXTITEM, TVGN_NEXTSELECTED, 0) as HTREEITEM;
        if tree_handle.is_null() {
            None
        } else {
            Some(TreeItem { handle: tree_handle })
        }
    }
/// Return the currently selected item. If there are more than one selected item, returns the first one.
/// If there is no selected item, returns `None`.
Return the currently selected item. If there are more than one selected item, returns the first one.
If there is no selected item, returns `None`.
Return the currently selected item . If there are more than one selected item returns the first one . If there is no selected item returns ` None ` .
pub fn selected_item(&self) -> Option<TreeItem> {
        use winapi::um::commctrl::{TVM_GETNEXTITEM, TVGN_NEXTSELECTED};
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let tree_handle = wh::send_message(handle, TVM_GETNEXTITEM, TVGN_NEXTSELECTED, 0) as HTREEITEM;
        if tree_handle.is_null() {
            None
        } else {
            Some(TreeItem { handle: tree_handle })
        }
    }
pub fn selected_item ( & self ) -> Option < TreeItem > { use winapi :: um :: commctrl :: { TVM_GETNEXTITEM , TVGN_NEXTSELECTED } ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let tree_handle = wh :: send_message ( handle , TVM_GETNEXTITEM , TVGN_NEXTSELECTED , 0 ) as HTREEITEM ; if tree_handle . is_null ( ) { None } else { Some ( TreeItem { handle : tree_handle } ) } }
Return the currently selected item.
Return the currently selected item .
&self