描述
包含报表视图中列的信息.此结构用于创建和操作列.这种结构取代了LV_COLUMN结构.
FreeBASIC 语法
TYPE LVCOLUMNW_V6 mask AS UINT fmt AS LONG cx AS LONG pszText AS LPWSTR cchTextMax AS LONG iSubItem AS LONG iImage AS LONG iOrder AS LONG #if _WIN32_WINNT = &h0602 cxMin AS LONG cxDefault AS LONG cxIdeal AS LONG #endif END TYPE |
成员
mask
Variable specifying which members contain valid information. This member can be zero, or one or more of the following values:
LVCF_FMT
The fmt member is valid.
LVCF_WIDTH
The cx member is valid.
LVCF_TEXT
The pszText member is valid.
LVCF_SUBITEM
The iSubItem member is valid.
LVCF_IMAGE
Version 4.70. The iImage member is valid.
LVCF_ORDER
Version 4.70. The iOrder member is valid.
LVCF_MINWIDTH
Version 6.00 and Windows Vista.The cxMin member is valid.
LVCF_DEFAULTWIDTH
Version 6.00 and Windows Vista.The cxDefault member is valid.
LVCF_IDEALWIDTH
Version 6.00 and Windows Vista.The cxIdeal member is valid.
fmt
Alignment of the column header and the subitem text in the column. The alignment of the leftmost column is always left-justified; it cannot be changed. This member can be one of the following values:
LVCFMT_LEFT
Text is left-aligned.
LVCFMT_RIGHT
Text is right-aligned.
LVCFMT_CENTER
Text is centered.
LVCFMT_JUSTIFYMASK
A bitmask used to select those bits of fmt that control field justification. To check the format of a column, use a logical "and" to combine LCFMT_JUSTIFYMASK with fmt. You can then use a switch statement to determine whether the LVCFMT_LEFT, LVCFMT_RIGHT, or LVCFMT_CENTER bits are set.
LVCFMT_IMAGE
Version 4.70. The item displays an image from an image list.
LVCFMT_BITMAP_ON_RIGHT
Version 4.70. The bitmap appears to the right of text. This does not affect an image from an image list assigned to the header item.
LVCFMT_COL_HAS_IMAGES
Version 4.70. The header item contains an image in the image list.
LVCFMT_FIXED_WIDTH
Version 6.00 and Windows Vista. Can't resize the column; same as HDF_FIXEDWIDTH.
LVCFMT_NO_DPI_SCALE
Version 6.00 and Windows Vista. If not set, CCM_DPISCALE will govern scaling up fixed width.
LVCFMT_FIXED_RATIO
Version 6.00 and Windows Vista. Width will augment with the row height.
LVCFMT_SPLITBUTTON
Version 6.00 and Windows Vista. Column is a split button (same as HDF_SPLITBUTTON). The header of the column displays a split button (same as HDF_SPLITBUTTON).
cx
Width of the column, in pixels.
pszText
If column information is being set, this member is the address of a null-terminated string that contains the column header text. If the structure is receiving information about a column, this member specifies the address of the buffer that receives the column header text.
cchTextMax
Size in TCHARs of the buffer pointed to by the pszText member. If the structure is not receiving information about a column, this member is ignored.
iSubItem
Index of subitem associated with the column.
iImage
Version 4.70. Zero-based index of an image within the image list. The specified image will appear within the column.
iOrder
Version 4.70. Zero-based column offset. Column offset is in left-to-right order. For example, zero indicates the leftmost column.
cxMin
Windows Vista Minimum width of the column in pixels.
cxDefault
Windows Vista Default width of the column in pixels.
cxIdeal
Windows Vista Read-only. The ideal width of the column in pixels, as the column may currently be autosized to a lesser width.
备注
如果列添加到索引0列表视图控件(最左边)和LVCFMT_RIGHT或LVCFMT_CENTER指定,不是文字右对齐或居中.索引0列中的文本为左对齐.因此,如果继续用索引0插入列,则所有列中的文本将向左对齐.如果希望第一列正确对齐或居中,则可以生成虚拟列,然后用索引1或更高的形式插入一个或多个列,并指定所需的对齐方式.最后删除虚拟列.
引用文件
CommCtrl.bi


