LITEM structure (commctrl.h)
Used to set and retrieve information about a link item.
Syntax
typedef struct tagLITEM {
UINT mask;
int iLink;
UINT state;
UINT stateMask;
WCHAR szID[MAX_LINKID_TEXT];
WCHAR szUrl[L_MAX_URL_LENGTH];
} LITEM, *PLITEM;
Members
mask
Type: UINT
Combination of one or more of the following flags, describing the information to set or retrieve:
iLink
Type: int
Value of type int that contains the item index. This numeric index is used to access a SysLink control link.
state
Type: UINT
Combination of one or more of the following flags, describing the state of the item:
Value | Meaning |
---|---|
|
The link can respond to user input. This is the default unless the entire control was created with WS_DISABLED. In this case, all links are disabled. |
|
The link has the keyboard focus. Pressing ENTER sends an NM_CLICK notification. |
|
The link has been visited by the user. Changing the URL to one that has not been visited causes this flag to be cleared. |
|
Indicates that the syslink control will highlight in a different color (COLOR_HIGHLIGHT) when the mouse hovers over the control. |
|
Enable custom text colors to be used. |
stateMask
Type: UINT
Combination of flags describing which state item to get or set. Allowable items are identical to those allowed in state.
szID[MAX_LINKID_TEXT]
Type: WCHAR[MAX_LINKID_TEXT]
WCHAR string that contains the ID name. The maximum number of characters in the array is MAX_LINKID_TEXT. The ID name cannot be used to access a SysLink control link. You use the item index to access the item.
szUrl[L_MAX_URL_LENGTH]
Type: WCHAR[L_MAX_URL_LENGTH]
WCHAR string that contains the URL represented by the link. The maximum number of characters in the array is L_MAX_URL_LENGTH.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | commctrl.h |