The ListView_ColumnSetAlignment() function specifies the alignment of a column in a list view field.
ListView_ColumnSetAlignment(list_view_field, column_index, alignment)
• list_view_field – The list view field containing the specified column.
• column_index – An integer specifying the index of the column whose alignment is being set. 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. |
• alignment – An integer corresponding to one of the following constants:
Constant |
Description |
---|---|
LV_ALIGN_LEFT |
Items will be left-aligned. |
LV_ALIGN_CENTER |
Items will be center-aligned. |
LV_ALIGN_RIGHT |
Items will be right-aligned. |
An integer value indicating the previous alignment of the column. The value corresponds to one of the constants listed for the alignment parameter.