pub fn push(&self, item: D) {
        use winapi::um::winuser::LB_ADDSTRING;

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let display = format!("{}", item);
        let display_os = to_utf16(&display);

        unsafe {
            wh::send_message(handle, LB_ADDSTRING, 0, mem::transmute(display_os.as_ptr()));
        }

        self.collection.borrow_mut().push(item);
    }
/// Add a new item to the listbox. Sort the collection if the listbox is sorted.
Add a new item to the listbox. Sort the collection if the listbox is sorted.
Add a new item to the listbox . Sort the collection if the listbox is sorted .
pub fn push(&self, item: D) {
        use winapi::um::winuser::LB_ADDSTRING;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let display = format!("{}", item);
        let display_os = to_utf16(&display);
        unsafe {
            wh::send_message(handle, LB_ADDSTRING, 0, mem::transmute(display_os.as_ptr()));
        }
        self.collection.borrow_mut().push(item);
    }
pub fn push ( & self , item : D ) { use winapi :: um :: winuser :: LB_ADDSTRING ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let display = format ! ( " " item ) ; let display_os = to_utf16 ( & display ) ; unsafe { wh :: send_message ( handle , LB_ADDSTRING , 0 , mem :: transmute ( display_os . as_ptr ( ) ) ) ; } self . collection . borrow_mut ( ) . push ( item ) ; }
Add a new item to the listbox.
Add a new item to the listbox .
&self
item
D