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.
A version of this page is also available for
4/8/2010

This structure describes a deleted list box or combo box item. The lParamparameter of a WM_DELETEITEMmessage contains a pointer to this structure. When an item is removed from a list box or combo box or when a list box or combo box is destroyed, Windows sends the WM_DELETEITEM message to the owner for each deleted item.

Syntax

typedef struct tagDELETEITEMSTRUCT { 
  UINT 
CtlType; 
  UINT 
CtlID; 
  UINT 
itemID; 
  HWND 
hwndItem; 
  UINT 
itemData; 
} DELETEITEMSTRUCT; 

Members

CtlType

Specifies whether the item was deleted from a list box or a combo box. It is one of the following values.

Value Description

ODT_LISTBOX

Item was deleted from a list box.

ODT_COMBOBOX

Item was deleted from a combo box.

CtlID

Specifies the identifier of the list box or combo box.

itemID

Index of the item in the list box or combo box being removed.

hwndItem

Handle to the control.

itemData

Specifies application-defined data for the item. This value is passed to the control in the lParamparameter of the message that adds the item to the list box or combo box.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also