pub fn replace_bitmap(&self, index: i32, bitmap: &Bitmap) {
        use winapi::um::commctrl::ImageList_Replace;

        if self.handle.is_null() { panic!("{}", NOT_BOUND); }
        if bitmap.handle.is_null() { panic!("Bitmap was not initialized"); }
        
        unsafe { ImageList_Replace(self.handle, index, bitmap.handle as HBITMAP, ptr::null_mut()); }
    }
/// Replaces an image in the image list. Panics if the bitmap was not initialized
Replaces an image in the image list. Panics if the bitmap was not initialized
Replaces an image in the image list . Panics if the bitmap was not initialized
pub fn replace_bitmap(&self, index: i32, bitmap: &Bitmap) {
        use winapi::um::commctrl::ImageList_Replace;
        if self.handle.is_null() { panic!("{}", NOT_BOUND); }
        if bitmap.handle.is_null() { panic!("Bitmap was not initialized"); }
        unsafe { ImageList_Replace(self.handle, index, bitmap.handle as HBITMAP, ptr::null_mut()); }
    }
pub fn replace_bitmap ( & self , index : i32 , bitmap : & Bitmap ) { use winapi :: um :: commctrl :: ImageList_Replace ; if self . handle . is_null ( ) { panic ! ( " " NOT_BOUND ) ; } if bitmap . handle . is_null ( ) { panic ! ( " " ) ; } unsafe { ImageList_Replace ( self . handle , index , bitmap . handle as HBITMAP , ptr :: null_mut ( ) ) ; } }
Replaces an image in the image list.
Replaces an image in the image list .
&self
index
i32
bitmap
&Bitmap