pub fn text<'a>(&self, index: u8) -> String {
        use winapi::um::commctrl::{SB_GETTEXTLENGTHW, SB_GETTEXTW};
        use winapi::shared::minwindef::LOWORD;
        use crate::win32::base_helper::from_utf16;

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let result = wh::send_message(handle, SB_GETTEXTLENGTHW, index as WPARAM, 0);
        let text_length = (LOWORD(result as u32) as usize) + 1; // +1 for the terminating null character

        let mut buffer: Vec<u16> = Vec::with_capacity(text_length);
        unsafe { buffer.set_len(text_length); }
        
        wh::send_message(handle, SB_GETTEXTW, index as WPARAM, buffer.as_mut_ptr() as LPARAM);

        from_utf16(&buffer)
    }
/// Return the text in one of the region of the status bar
Return the text in one of the region of the status bar
Return the text in one of the region of the status bar
pub fn text<'a>(&self, index: u8) -> String {
        use winapi::um::commctrl::{SB_GETTEXTLENGTHW, SB_GETTEXTW};
        use winapi::shared::minwindef::LOWORD;
        use crate::win32::base_helper::from_utf16;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let result = wh::send_message(handle, SB_GETTEXTLENGTHW, index as WPARAM, 0);
        let text_length = (LOWORD(result as u32) as usize) + 1; // +1 for the terminating null character
        let mut buffer: Vec<u16> = Vec::with_capacity(text_length);
        unsafe { buffer.set_len(text_length); }
        wh::send_message(handle, SB_GETTEXTW, index as WPARAM, buffer.as_mut_ptr() as LPARAM);
        from_utf16(&buffer)
    }
pub fn text < ' a > ( & self , index : u8 ) -> String { use winapi :: um :: commctrl :: { SB_GETTEXTLENGTHW , SB_GETTEXTW } ; use winapi :: shared :: minwindef :: LOWORD ; use crate :: win32 :: base_helper :: from_utf16 ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let result = wh :: send_message ( handle , SB_GETTEXTLENGTHW , index as WPARAM , 0 ) ; let text_length = ( LOWORD ( result as u32 ) as usize ) + 1 ; // +1 for the terminating null character let mut buffer : Vec < u16 > = Vec :: with_capacity ( text_length ) ; unsafe { buffer . set_len ( text_length ) ; } wh :: send_message ( handle , SB_GETTEXTW , index as WPARAM , buffer . as_mut_ptr ( ) as LPARAM ) ; from_utf16 ( & buffer ) }
Return the text in one of the region of the status bar
Return the text in one of the region of the status bar
&self
index
u8