ListBox_AddItemData macro (windowsx.h)
Adds item data to the list box at the specified location. You can use this macro or send the LB_ADDSTRING message explicitly.
Syntax
void ListBox_AddItemData(
hwndCtl,
data
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
data
Type: LPARAM
A pointer to the item data to add.
Return value
None
Remarks
Use this macro for a list box with an owner-drawn style but without the LBS_HASSTRINGS style. For more information, see LB_ADDSTRING.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | windowsx.h |