WinXListView_AddColumn


iColumn = WinXListView_AddColumn (hLV, iColumn, wColumn, STRING label, iSubItem)

Adds a column to a list view control

Parameter Description
hLV The handle to the control to add the column to
iColumn The 0 based index at which to add the column
wColumn The width of the column
STRING label The label for the column
iSubItem The 1 based index of the sub item the column displays

Returns

The index at which the column is inserted or -1 on fail

Remarks

If the iSubItem parameter is 0, the column will display the item's label instead of a subitem.

The columns are not visible unless the control is in report view.

Examples

'add a new column to display the first subitem
WinXListView_AddColumn (hLV, 1, 100, "Sub Item 1 ", 1)

Related Links

List View Controls
WinXAddListView
WinXListView_SetView
WinXListView_DeleteColumn
WinXListView_AddItem
WinXListView_GetItemText