Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DELETEITEMSTRUCT Structure

The DELETEITEMSTRUCT structure describes a deleted owner-drawn list-box or combo-box item.

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

CtlType

Specifies ODT_LISTBOX (an owner-drawn list box) or ODT_COMBOBOX (an owner-drawn combo box).

CtlID

Specifies the identifier of the list box or combo box.

itemID

Specifies index of the item in the list box or combo box being removed.

hwndItem

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

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

Header: atldbcli.h

Community Additions

ADD
Show:
© 2015 Microsoft