<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ListView Control > Listview Control Commands > ListView: Columns functions > ListView_SetColumnWidth |
Description
Sets the width of a column in report or list view.
Syntax
n = ListView_SetColumnWidth(hWnd, ctrlID, ColumnIndex, lWidth)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
hWnd |
Number |
No |
Handle of the dialog containing the list-view control |
ctrlID |
Number |
No |
Control identifier assigned to the control during CONTROL ADD ... |
ColumnIndex |
Number |
No |
Column index. Starts from 1 |
lWidth |
Number |
No |
Width of column. The following equates are available: %LVSCW_AUTOSIZE %LVSCW_AUTOSIZE_USEHEADER |
Remarks
Restrictions
See also
Examples