windows_programming_notes.nbk: Home | Index | Next Page: listview - how to add data | Previous Page: List of Messages to Windows
LVCOLUMN lvc;
lvc.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT | LVCF_SUBITEM;
lvc.iSubItem = next_column++;
lvc.pszText = text;
lvc.cx = width;
lvc.fmt = format;
return (ListView_InsertColumn(my_handle, lvc.iSubItem, &lvc) != -1);
In this case next_column is a local variable used to keep track of the column being added. See also LVCOLUMN.
windows_programming_notes.nbk: Home | Index | Next Page: listview - how to add data | Previous Page: List of Messages to Windows
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time