pub fn item_state(&self, tree_item: &TreeItem) -> Option<TreeItemState> {
        use winapi::um::commctrl::{TVM_GETITEMW, TVIF_STATE, TVIF_HANDLE};

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);

        let mut item: TVITEMW = unsafe { mem::zeroed() };
        item.hItem = tree_item.handle;
        item.mask = TVIF_STATE | TVIF_HANDLE;
        item.stateMask = 0xFF;
        
        let result = wh::send_message(handle, TVM_GETITEMW, 0, &mut item as *mut TVITEMW as LPARAM);
        if result == 0 {
            return None;
        }

        Some(TreeItemState::from_bits_truncate(item.state))
    }
/// Returns the item state in the tree view or `None` if the item is not in the tree view
Returns the item state in the tree view or `None` if the item is not in the tree view
Returns the item state in the tree view or ` None ` if the item is not in the tree view
pub fn item_state(&self, tree_item: &TreeItem) -> Option<TreeItemState> {
        use winapi::um::commctrl::{TVM_GETITEMW, TVIF_STATE, TVIF_HANDLE};
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut item: TVITEMW = unsafe { mem::zeroed() };
        item.hItem = tree_item.handle;
        item.mask = TVIF_STATE | TVIF_HANDLE;
        item.stateMask = 0xFF;
        let result = wh::send_message(handle, TVM_GETITEMW, 0, &mut item as *mut TVITEMW as LPARAM);
        if result == 0 {
            return None;
        }
        Some(TreeItemState::from_bits_truncate(item.state))
    }
pub fn item_state ( & self , tree_item : & TreeItem ) -> Option < TreeItemState > { use winapi :: um :: commctrl :: { TVM_GETITEMW , TVIF_STATE , TVIF_HANDLE } ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let mut item : TVITEMW = unsafe { mem :: zeroed ( ) } ; item . hItem = tree_item . handle ; item . mask = TVIF_STATE | TVIF_HANDLE ; item . stateMask = 0xFF ; let result = wh :: send_message ( handle , TVM_GETITEMW , 0 , & mut item as * mut TVITEMW as LPARAM ) ; if result == 0 { return None ; } Some ( TreeItemState :: from_bits_truncate ( item . state ) ) }
Returns the item state in the tree view or `None` if the item is not in the tree view
Returns the item state in the tree view or ` None ` if the item is not in the tree view
&self
tree_item
&TreeItem