fn bind_container<'a>(&self, text: &'a str) {
        use winapi::um::commctrl::{TCITEMW, TCM_INSERTITEMW, TCIF_TEXT};

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

        let tab_view_handle = wh::get_window_parent(handle);
        let next_index = Tab::next_index(tab_view_handle);

        unsafe {
            Tab::init(handle, tab_view_handle, next_index);
        }

        let text = to_utf16(&text);
        let tab_info = TCITEMW {
            mask: TCIF_TEXT,
            dwState: 0,
            dwStateMask: 0,
            pszText: text.as_ptr() as LPWSTR,
            cchTextMax: 0,
            iImage: -1,
            lParam: 0
        };

        let tab_info_ptr = &tab_info as *const TCITEMW;
        wh::send_message(tab_view_handle, TCM_INSERTITEMW, next_index as WPARAM, tab_info_ptr as LPARAM);
    }
/// Bind the tab to a tab view
Bind the tab to a tab view
Bind the tab to a tab view
fn bind_container<'a>(&self, text: &'a str) {
        use winapi::um::commctrl::{TCITEMW, TCM_INSERTITEMW, TCIF_TEXT};
        if self.handle.blank() { panic!("{}", NOT_BOUND); }
        let handle = self.handle.hwnd().expect(BAD_HANDLE);
        let tab_view_handle = wh::get_window_parent(handle);
        let next_index = Tab::next_index(tab_view_handle);
        unsafe {
            Tab::init(handle, tab_view_handle, next_index);
        }
        let text = to_utf16(&text);
        let tab_info = TCITEMW {
            mask: TCIF_TEXT,
            dwState: 0,
            dwStateMask: 0,
            pszText: text.as_ptr() as LPWSTR,
            cchTextMax: 0,
            iImage: -1,
            lParam: 0
        };
        let tab_info_ptr = &tab_info as *const TCITEMW;
        wh::send_message(tab_view_handle, TCM_INSERTITEMW, next_index as WPARAM, tab_info_ptr as LPARAM);
    }
fn bind_container < ' a > ( & self , text : & ' a str ) { use winapi :: um :: commctrl :: { TCITEMW , TCM_INSERTITEMW , TCIF_TEXT } ; if self . handle . blank ( ) { panic ! ( " " NOT_BOUND ) ; } let handle = self . handle . hwnd ( ) . expect ( BAD_HANDLE ) ; let tab_view_handle = wh :: get_window_parent ( handle ) ; let next_index = Tab :: next_index ( tab_view_handle ) ; unsafe { Tab :: init ( handle , tab_view_handle , next_index ) ; } let text = to_utf16 ( & text ) ; let tab_info = TCITEMW { mask : TCIF_TEXT , dwState : 0 , dwStateMask : 0 , pszText : text . as_ptr ( ) as LPWSTR , cchTextMax : 0 , iImage : - 1 , lParam : 0 } ; let tab_info_ptr = & tab_info as * const TCITEMW ; wh :: send_message ( tab_view_handle , TCM_INSERTITEMW , next_index as WPARAM , tab_info_ptr as LPARAM ) ; }
Bind the tab to a tab view
Bind the tab to a tab view
&self
text
&'a str