TCITEMHEADERW structure (commctrl.h)
Specifies or receives the attributes of a tab. It is used with the TCM_INSERTITEM, TCM_GETITEM, and TCM_SETITEM messages. This structure supersedes the TC_ITEMHEADER structure.
Syntax
typedef struct tagTCITEMHEADERW {
UINT mask;
UINT lpReserved1;
UINT lpReserved2;
LPWSTR pszText;
int cchTextMax;
int iImage;
} TCITEMHEADERW, *LPTCITEMHEADERW;
Members
mask
Type: UINT
Value that specifies which members to retrieve or set. This member can be a combination of the following values:
lpReserved1
Type: UINT
Reserved member. Do not use.
lpReserved2
Type: UINT
Reserved member. Do not use.
pszText
Type: LPTSTR
Address of a null-terminated string that contains the tab text if item information is being set. If item information is being retrieved, this member specifies the address of the buffer that receives the tab text.
cchTextMax
Type: int
Size of the buffer pointed to by the pszText member. If the structure is not receiving information, this member is ignored.
iImage
Type: int
Index into the tab control's image list, or -1 if there is no image for the tab.
Remarks
Typically, windows display text left-to-right (LTR). Windows can be mirrored to display languages such as Hebrew or Arabic that read right-to-left (RTL). Ordinarily, pszText will be displayed in the same direction as the text in its parent window. If TCIF_RTLREADING is set, pszText will read in the opposite direction from the text in the parent window.
Note
The commctrl.h header defines TCITEMHEADER as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | commctrl.h |