Hi,
I have a multicolumn list box that I'd like to add columns to and different things to those columns. However, I can't find any info on how to do so, MSDN doesn't even say anything. Can anyone give me some info on how to use these? I found this code on a forum from a long time ago but I have no idea what all of the variables are:
Can anyone help? Thanks.Code:HWND hView = GetDlgItem(hwnd, IDC_MAINLIST); GetClientRect(hView,&ClientRect); iWidth=(ClientRect.right-ClientRect.left)/NUM_COLUMNS; LVColumn.mask = LVCF_FMT | LVCF_WIDTH | LVCF_TEXT ; LVColumn.fmt = LVCFMT_LEFT; LVColumn.cx=iWidth; LVColumn.pszText = "Column Title"; LVColumn.cchTextMax = lstrlen("Column Title"); LVColumn.iSubItem = 0; LVColumn.iImage = 0; LVColumn.iOrder = 0; ListView_InsertColumn(hView,0,&LVColumn);