LVCOLUMN结构体 中英文对照

来源:互联网 发布:软件导出数据库 编辑:程序博客网 时间:2024/05/19 20:49

本文参考MSDN

包含有关在报告视图列。 This structure is used both for creating and manipulating columns.这个结构是用于创建和操纵列两者。 This structure supersedes the LV_COLUMN structure.这种结构取代LV_COLUMN结构。

 

typedef struct _LVCOLUMN {
    UINT mask;
    int fmt;
    int cx;
    LPTSTR pszText;
    int cchTextMax;
    int iSubItem;
#if (_WIN32_IE >= 0x0300)
    int iImage;
    int iOrder;
#endif
} LVCOLUMN, FAR *LPLVCOLUMN;

 

参数:

mask :变量指定哪些成员包含有效的信息。 This member can be zero, or one or more of the following values:此成员可以是零,或者一个或更多下列值:(详细看MSDN)

fmt :对齐列头和子项的文本列中。 The alignment of the leftmost column is always LVCFMT_LEFT; it cannot be changed.在最左边的列对齐总是LVCFMT_LEFT,它不能改变的。 This member can be a combination of the following values.此成员可以是下列值的组合。 Note that not all combinations are valid.请注意,并非所有的组合都是有效的。

 cx :宽度以像素为单位列。

pszText :如果列信息是被设置,该成员是一个空结束的字符串,包含列标题文本的地址。 If the structure is receiving information about a column, this member specifies the address of the buffer that receives the column header text.如果收到有关的结构是一列信息,该成员指定的缓冲区,它接收的列标题文本的地址。

cchTextMax : TCHAR大小S中指出的缓冲区由pszText成员。 If the structure is not receiving information about a column, this member is ignored.如果结构没有得到有关一列信息,该成员将被忽略。

iSubItem :指数与列相关的子项。

iImage : 版本4.70Zero-based index of an image within the image list.从零开始的索引图像在图像列表. The specified image will appear within the column.指定的图像将出现在列。

 

iOrder : 版本4.70 Zero-based column offset.零基列偏移。 Column offset is in left-to-right order.列偏移是左到右的顺序。 For example, zero indicates the leftmost column.例如,0表示最左边的列。