Microsoft Windows CE 3.0  

CB_GETITEMDATA

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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

CB_GETITEMDATA
wParam= 
(WPARAM)
index, 
lParam= 0

Parameters

index
Specifies the zero-based index of the item.

Return Values

The 32-bit value associated with the item indicates success. CB_ERR indicates that an error has occurred.

If the item is in an owner-drawn combo box created without the CBS_HASSTRINGS style, the return value is the 32-bit value contained in the lParamparameter of the CB_ADDSTRING or CB_INSERTSTRINGmessage that added the item to the combo box. If the CBS_HASSTRINGS style was not used, the return value is the lParamparameter contained in a CB_SETITEMDATAmessage.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CB_ADDSTRING, CB_INSERTSTRING, CB_SETITEMDATA