The LV_COLUMN structure contains information about a column in a list view control. This structure is also used to receive information about a column.
typedef struct _LV_COLUMN { UINT mask; int fmt; int cx; LPTSTR pszText; int cchTextMax; int iSubItem; } LV_COLUMN;
Value |
Meaning |
LVCF_FMT |
The fmt member is valid. |
LVCF_SUBITEM |
The iSubItem member is valid. |
LVCF_TEXT |
The pszText member is valid. |
LVCF_WIDTH |
The cx member is valid. |
Value |
Meaning |
LVCFMT_CENTER |
Text is centered. |
LVCFMT_LEFT |
Text is left-aligned. |
LVCFMT_RIGHT |
Text is right-aligned. |
The leftmost column in a list view control must be left aligned.
This structure is used with the LVM_GETCOLUMN, LVM_SETCOLUMN, LVM_INSERTCOLUMN, and LVM_DELETECOLUMN messages.
LVM_DELETECOLUMN, LVM_GETCOLUMN, LVM_INSERTCOLUMN, LVM_SETCOLUMN