DELETEITEMSTRUCT

typedef struct tagDELETEITEMSTRUCT {

WORD CtlType

WORD CtlID;

WORD itemID;

HWND hwndItem;

DWORD itemData;

} DELETEITEMSTRUCT;

The DELETEITEMSTRUCT structure describes a deleted owner-draw list-box or combo-box item. 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 along with a pointer to this structure. For more information, see CWnd::OnDeleteItem.

Members

CtlType

Contains ODT_LISTBOX (which specifies an owner-draw list box) or ODT_COMBOBOX (which specifies an owner-draw combo box).

CtlID

Contains the control ID for the list box or combo box.

itemID

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

hwndItem

Contains the window handle of the control.

itemData

Contains the owner-defined value that was assigned to this item when it was created.