pub fn insert_column<I: Into<InsertListViewColumn>>(&self, insert: I) {
        use winapi::um::commctrl::LVM_INSERTCOLUMNW;

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

        match self.list_style() {
            ListViewStyle::Detailed => {},
            _ => { return; }
        }

        let insert = insert.into();

        let mut mask = LVCF_TEXT | LVCF_WIDTH;

        let text = insert.text.unwrap_or("".to_string());
        let mut text = to_utf16(&text);

        let col_width = insert.width.unwrap_or(100) as f64 * crate::win32::high_dpi::scale_factor();

        if insert.fmt.is_some() { mask |= LVCF_FMT; }

        let mut item: LVCOLUMNW = unsafe { mem::zeroed() };
        item.mask = mask;
        item.fmt = insert.fmt.unwrap_or(ListViewColumnFlags::empty()).bits() as _;
        item.cx = col_width as i32;
        item.pszText = text.as_mut_ptr();
        item.cchTextMax = text.len() as i32;

        let col_count = self.column_len() as i32;
    
        wh::send_message(
            handle, 
            LVM_INSERTCOLUMNW, 
            insert.index.unwrap_or(col_count) as usize, 
            (&item as *const LVCOLUMNW) as _
        );
    }
/// Inserts a column in the report. Column are only used with the Detailed list view style.
Inserts a column in the report. Column are only used with the Detailed list view style.
Inserts a column in the report . Column are only used with the Detailed list view style .
pub fn insert_column<I: Into<InsertListViewColumn>>(&self, insert: I) {
        use winapi::um::commctrl::LVM_INSERTCOLUMNW;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        match self.list_style() {
            ListViewStyle::Detailed => {},
            _ => { return; }
        }
        let insert = insert.into();
        let mut mask = LVCF_TEXT | LVCF_WIDTH;
        let text = insert.text.unwrap_or("".to_string());
        let mut text = to_utf16(&text);
        let col_width = insert.width.unwrap_or(100) as f64 * crate::win32::high_dpi::scale_factor();
        if insert.fmt.is_some() { mask |= LVCF_FMT; }
        let mut item: LVCOLUMNW = unsafe { mem::zeroed() };
        item.mask = mask;
        item.fmt = insert.fmt.unwrap_or(ListViewColumnFlags::empty()).bits() as _;
        item.cx = col_width as i32;
        item.pszText = text.as_mut_ptr();
        item.cchTextMax = text.len() as i32;
        let col_count = self.column_len() as i32;
        wh::send_message(
            handle, 
            LVM_INSERTCOLUMNW, 
            insert.index.unwrap_or(col_count) as usize, 
            (&item as *const LVCOLUMNW) as _
        );
    }
pub fn insert_column < I : Into < InsertListViewColumn > > ( & self , insert : I ) { use winapi :: um :: commctrl :: LVM_INSERTCOLUMNW ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; match self . list_style ( ) { ListViewStyle :: Detailed => { } , _ => { return ; } } let insert = insert . into ( ) ; let mut mask = LVCF_TEXT | LVCF_WIDTH ; let text = insert . text . unwrap_or ( " " . to_string ( ) ) ; let mut text = to_utf16 ( & text ) ; let col_width = insert . width . unwrap_or ( 100 ) as f64 * crate :: win32 :: high_dpi :: scale_factor ( ) ; if insert . fmt . is_some ( ) { mask |= LVCF_FMT ; } let mut item : LVCOLUMNW = unsafe { mem :: zeroed ( ) } ; item . mask = mask ; item . fmt = insert . fmt . unwrap_or ( ListViewColumnFlags :: empty ( ) ) . bits ( ) as _ ; item . cx = col_width as i32 ; item . pszText = text . as_mut_ptr ( ) ; item . cchTextMax = text . len ( ) as i32 ; let col_count = self . column_len ( ) as i32 ; wh :: send_message ( handle , LVM_INSERTCOLUMNW , insert . index . unwrap_or ( col_count ) as usize , ( & item as * const LVCOLUMNW ) as _ ) ; }
Inserts a column in the report.
Inserts a column in the report .
&self
insert
I