pub fn replace_icon(&self, index: i32, icon: &Icon) {
        use winapi::um::commctrl::ImageList_ReplaceIcon;

        if self.handle.is_null() { panic!("{}", NOT_BOUND); }
        if icon.handle.is_null() { panic!("Icon was not initialized"); }

        unsafe { ImageList_ReplaceIcon(self.handle, index, icon.handle as HICON); }
    }
/// Replaces an image in the image list by an icon. Panics if the icon was not initialized
Replaces an image in the image list by an icon. Panics if the icon was not initialized
Replaces an image in the image list by an icon . Panics if the icon was not initialized
pub fn replace_icon(&self, index: i32, icon: &Icon) {
        use winapi::um::commctrl::ImageList_ReplaceIcon;
        if self.handle.is_null() { panic!("{}", NOT_BOUND); }
        if icon.handle.is_null() { panic!("Icon was not initialized"); }
        unsafe { ImageList_ReplaceIcon(self.handle, index, icon.handle as HICON); }
    }
pub fn replace_icon ( & self , index : i32 , icon : & Icon ) { use winapi :: um :: commctrl :: ImageList_ReplaceIcon ; if self . handle . is_null ( ) { panic ! ( " " NOT_BOUND ) ; } if icon . handle . is_null ( ) { panic ! ( " " ) ; } unsafe { ImageList_ReplaceIcon ( self . handle , index , icon . handle as HICON ) ; } }
Replaces an image in the image list by an icon.
Replaces an image in the image list by an icon .
&self
index
i32
icon
&Icon