ListBox_InsertItemData macro (windowsx.h)

Inserts item data to a list box at the specified location. You can use this macro or send the LB_INSERTSTRING message explicitly.

Syntax

void ListBox_InsertItemData(
   hwndCtl,
   index,
   data
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

index

Type: int

The zero-based index in the list at which to insert the item data, or –1 to add it to the end of the list.

data

Type: LPARAM

A pointer to the item data to insert.

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_INSERTSTRING.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h