CB_SETITEMDATA

This message is sent by an application to set the 32-bit value associated with the specified item in a combo box.

CB_SETITEMDATA wParam = (WPARAM) index;
  lParam = (LPARAM)(DWORD) dwData;

Parameters

  • index
    Specifies the item's zero-based index.
  • dwData
    Specifies the new value to be associated with the item.

Return Values

CB_ERR indicates that an error has occurred.

Remarks

Windows CE does not support owner-drawn combo boxes.

If the specified item is in an owner-drawn combo box created without the CBS_HASSTRINGS style, this message replaces the 32-bit value in the lParam parameter of the CB_ADDSTRING or CB_INSERTSTRING message that added the item to the combo box.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.

See Also

Combo Box Messages | SendMessage | CB_ADDSTRING | CB_GETITEMDATA | CB_INSERTSTRING

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.