Adds a column header to a list view control.
Takes listViewID (Int), text (String), and width (Int).
Returns 1 on success, 0 if list view not found.
BGI GUI
Parameters & Returns
Parameters
listViewIDInt
textString
widthInt
Returns
Int
Quick Summary
Adds a column header to a list view control.
Takes listViewID (Int), text (String), and width (Int).
Returns 1 on success, 0 if list view not found.
Technical Exegesis...
Adds a column header to a list view control with specified text and width. Searches gizmoMap for the list view ID. Creates LVCOLUMN structure with LVCF_FMT | LVCF_WIDTH | LVCF_TEXT mask. Sets format to LVCFMT_LEFT (left-aligned text). Sets column width in pixels. Gets current column count with Header_GetItemCount on ListView_GetHeader. Inserts column at end with ListView_InsertColumn. Returns 1 on success, 0 if list view not found.
Adds a column header to a list view control with specified text and width. Searches gizmoMap for the list view ID. Creates LVCOLUMN structure with LVCF_FMT | LVCF_WIDTH | LVCF_TEXT mask. Sets format to LVCFMT_LEFT (left-aligned text). Sets column width in pixels. Gets current column count with Header_GetItemCount on ListView_GetHeader. Inserts column at end with ListView_InsertColumn. Returns 1 on success, 0 if list view not found.
This function defines column headers for the list view's report/details mode. Must be called before adding items to establish the column structure. First column added is column 0, second is column 1, etc. Width is in pixels (typical: 100-200). Columns are added sequentially at the end. Column text appears in the header row. Use for file lists (Name, Size, Date), data grids, or any tabular display. After adding columns, populate data with bgiAddListViewItem and bgiSetListViewSubItem.