Partager via


DELETEITEMSTRUCT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure describes a deleted list box or combo box item. The lParam parameter of a WM_DELETEITEM message 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 lParam parameter 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

Reference

WM_DELETEITEM
List Boxes Structures