pub fn image<'a>(&self, bitmap: &mut Option<Bitmap>, icon: &mut Option<Icon>) {
        use winapi::um::winuser::{STM_GETIMAGE, IMAGE_BITMAP, IMAGE_ICON};
        use winapi::shared::minwindef::WPARAM;
        use winapi::shared::windef::HBITMAP;
        use winapi::um::winnt::HANDLE;

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let bitmap_handle = wh::send_message(handle, STM_GETIMAGE, IMAGE_BITMAP as WPARAM, 0);
        let icon_handle = wh::send_message(handle, STM_GETIMAGE, IMAGE_ICON as WPARAM, 0);

        *bitmap = None;
        *icon = None;

        if bitmap_handle != 0 && rh::is_bitmap(bitmap_handle as HBITMAP) {
            *bitmap = Some(Bitmap { handle: bitmap_handle as HANDLE, owned: false });
        } else if icon_handle != 0 {
            *icon = Some(Icon { handle: icon_handle as HANDLE, owned: false });
        }
    }
/// Returns the current image in the image frame.
/// If the image frame has a bitmap, the value will be returned in `bitmap`
/// If the image frame has a icon, the value will be returned in `icon`
Returns the current image in the image frame.
If the image frame has a bitmap, the value will be returned in `bitmap`
If the image frame has a icon, the value will be returned in `icon`
Returns the current image in the image frame . If the image frame has a bitmap the value will be returned in ` bitmap ` If the image frame has a icon the value will be returned in ` icon `
pub fn image<'a>(&self, bitmap: &mut Option<Bitmap>, icon: &mut Option<Icon>) {
        use winapi::um::winuser::{STM_GETIMAGE, IMAGE_BITMAP, IMAGE_ICON};
        use winapi::shared::minwindef::WPARAM;
        use winapi::shared::windef::HBITMAP;
        use winapi::um::winnt::HANDLE;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let bitmap_handle = wh::send_message(handle, STM_GETIMAGE, IMAGE_BITMAP as WPARAM, 0);
        let icon_handle = wh::send_message(handle, STM_GETIMAGE, IMAGE_ICON as WPARAM, 0);
        *bitmap = None;
        *icon = None;
        if bitmap_handle != 0 && rh::is_bitmap(bitmap_handle as HBITMAP) {
            *bitmap = Some(Bitmap { handle: bitmap_handle as HANDLE, owned: false });
        } else if icon_handle != 0 {
            *icon = Some(Icon { handle: icon_handle as HANDLE, owned: false });
        }
    }
pub fn image < ' a > ( & self , bitmap : & mut Option < Bitmap > , icon : & mut Option < Icon > ) { use winapi :: um :: winuser :: { STM_GETIMAGE , IMAGE_BITMAP , IMAGE_ICON } ; use winapi :: shared :: minwindef :: WPARAM ; use winapi :: shared :: windef :: HBITMAP ; use winapi :: um :: winnt :: HANDLE ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let bitmap_handle = wh :: send_message ( handle , STM_GETIMAGE , IMAGE_BITMAP as WPARAM , 0 ) ; let icon_handle = wh :: send_message ( handle , STM_GETIMAGE , IMAGE_ICON as WPARAM , 0 ) ; * bitmap = None ; * icon = None ; if bitmap_handle != 0 && rh :: is_bitmap ( bitmap_handle as HBITMAP ) { * bitmap = Some ( Bitmap { handle : bitmap_handle as HANDLE , owned : false } ) ; } else if icon_handle != 0 { * icon = Some ( Icon { handle : icon_handle as HANDLE , owned : false } ) ; } }
Returns the current image in the image frame.
Returns the current image in the image frame .
&self
bitmap
&mut Option<Bitmap>
icon
&mut Option<Icon>