pub fn text(&self, owner: &ControlHandle, buffer_size: Option<usize>) -> String {
        use winapi::um::commctrl::{TTM_GETTEXTW, TTTOOLINFOW, TTF_IDISHWND, TTF_SUBCLASS};
        use winapi::shared::{basetsd::UINT_PTR, windef::RECT};

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

        let owner_handle = {
            if owner.blank() { panic!("{}", NOT_BOUND); }
            owner.hwnd().expect(BAD_HANDLE)
        };

        let buffer_size = buffer_size.unwrap_or(200);
        let mut text: Vec<WCHAR> = Vec::with_capacity(buffer_size);
        unsafe { text.set_len(buffer_size); }

        let mut tool = TTTOOLINFOW {
            cbSize: mem::size_of::<TTTOOLINFOW>() as UINT,
            uFlags: TTF_IDISHWND | TTF_SUBCLASS,
            hwnd: owner_handle,
            uId: owner_handle as UINT_PTR,
            rect: RECT { left: 0, top: 0, right: 0, bottom: 0 },
            hinst: ptr::null_mut(),
            lpszText: text.as_mut_ptr(),
            lParam: 0,
            lpReserved: ptr::null_mut()
        };

        let tool_ptr = &mut tool as *mut TTTOOLINFOW;
        wh::send_message(handle, TTM_GETTEXTW, 0, tool_ptr as LPARAM);

        from_utf16(&text)
    }
/// Return the current text of the tooltip. There is no way to know the size of the text so you have
/// to pass the buffer size. The default buffer size is 200 characters.
Return the current text of the tooltip. There is no way to know the size of the text so you have
to pass the buffer size. The default buffer size is 200 characters.
Return the current text of the tooltip . There is no way to know the size of the text so you have to pass the buffer size . The default buffer size is 200 characters .
pub fn text(&self, owner: &ControlHandle, buffer_size: Option<usize>) -> String {
        use winapi::um::commctrl::{TTM_GETTEXTW, TTTOOLINFOW, TTF_IDISHWND, TTF_SUBCLASS};
        use winapi::shared::{basetsd::UINT_PTR, windef::RECT};
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let owner_handle = {
            if owner.blank() { panic!("{}", NOT_BOUND); }
            owner.hwnd().expect(BAD_HANDLE)
        };
        let buffer_size = buffer_size.unwrap_or(200);
        let mut text: Vec<WCHAR> = Vec::with_capacity(buffer_size);
        unsafe { text.set_len(buffer_size); }
        let mut tool = TTTOOLINFOW {
            cbSize: mem::size_of::<TTTOOLINFOW>() as UINT,
            uFlags: TTF_IDISHWND | TTF_SUBCLASS,
            hwnd: owner_handle,
            uId: owner_handle as UINT_PTR,
            rect: RECT { left: 0, top: 0, right: 0, bottom: 0 },
            hinst: ptr::null_mut(),
            lpszText: text.as_mut_ptr(),
            lParam: 0,
            lpReserved: ptr::null_mut()
        };
        let tool_ptr = &mut tool as *mut TTTOOLINFOW;
        wh::send_message(handle, TTM_GETTEXTW, 0, tool_ptr as LPARAM);
        from_utf16(&text)
    }
pub fn text ( & self , owner : & ControlHandle , buffer_size : Option < usize > ) -> String { use winapi :: um :: commctrl :: { TTM_GETTEXTW , TTTOOLINFOW , TTF_IDISHWND , TTF_SUBCLASS } ; use winapi :: shared :: { basetsd :: UINT_PTR , windef :: RECT } ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let owner_handle = { if owner . blank ( ) { panic ! ( " " NOT_BOUND ) ; } owner . hwnd ( ) . expect ( BAD_HANDLE ) } ; let buffer_size = buffer_size . unwrap_or ( 200 ) ; let mut text : Vec < WCHAR > = Vec :: with_capacity ( buffer_size ) ; unsafe { text . set_len ( buffer_size ) ; } let mut tool = TTTOOLINFOW { cbSize : mem :: size_of :: < TTTOOLINFOW > ( ) as UINT , uFlags : TTF_IDISHWND | TTF_SUBCLASS , hwnd : owner_handle , uId : owner_handle as UINT_PTR , rect : RECT { left : 0 , top : 0 , right : 0 , bottom : 0 } , hinst : ptr :: null_mut ( ) , lpszText : text . as_mut_ptr ( ) , lParam : 0 , lpReserved : ptr :: null_mut ( ) } ; let tool_ptr = & mut tool as * mut TTTOOLINFOW ; wh :: send_message ( handle , TTM_GETTEXTW , 0 , tool_ptr as LPARAM ) ; from_utf16 ( & text ) }
Return the current text of the tooltip.
Return the current text of the tooltip .
&self
owner
&ControlHandle
buffer_size
Option<usize>