pub fn selection(&self) -> Range<usize> {
        use winapi::um::winuser::EM_GETSEL;

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

        let (mut out1, mut out2) = (0u32, 0u32);
        let (ptr1, ptr2) = (&mut out1 as *mut u32, &mut out2 as *mut u32);
        wh::send_message(handle, EM_GETSEL as u32, ptr1 as _, ptr2 as _);

        Range { start: out1 as usize, end: out2 as usize }
    }
/// Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
pub fn selection(&self) -> Range<usize> {
        use winapi::um::winuser::EM_GETSEL;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let (mut out1, mut out2) = (0u32, 0u32);
        let (ptr1, ptr2) = (&mut out1 as *mut u32, &mut out2 as *mut u32);
        wh::send_message(handle, EM_GETSEL as u32, ptr1 as _, ptr2 as _);
        Range { start: out1 as usize, end: out2 as usize }
    }
pub fn selection ( & self ) -> Range < usize > { use winapi :: um :: winuser :: EM_GETSEL ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let ( mut out1 , mut out2 ) = ( 0u32 , 0u32 ) ; let ( ptr1 , ptr2 ) = ( & mut out1 as * mut u32 , & mut out2 as * mut u32 ) ; wh :: send_message ( handle , EM_GETSEL as u32 , ptr1 as _ , ptr2 as _ ) ; Range { start : out1 as usize , end : out2 as usize } }
Return the selected range of characters by the user in the text input
Return the selected range of characters by the user in the text input
&self