LM_SETITEM message

Sets the states and attributes of an item.

Parameters

wParam

Must be **NULL**.

lParam

Pointer to a LITEM structure containing the new states and attributes desired for the link.

Return value

Returns TRUE if the message succeeds in setting the values and attributes specified.

Remarks

With the LM_GETITEM message, links can only be accessed through the numeric index returned in the iLink member of LITEM. Accessing the link through the ID name returned in szID is not supported.

Note

To use this message, you must provide a manifest specifying Comctl32.dll version 6.0. For more information on manifests, see Enabling Visual Styles.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h