The ListView_ColumnGetWidth() function retrieves the width, in pixels, of the specified column.


ListView_ColumnGetWidth(list_view_field, column_index)


list_view_field – The list view field containing the specified column.

column_index – An integer specifying the index of the column whose width is being retrieved. The value 1 indicates the first column that was added to the list view field.

Dragging a column to a different position in the list view does not affect the column index.

Return value

An integer containing the width of the column in pixels.

Documentation Feedback