Skip to content

Latest commit

 

History

History
78 lines (66 loc) · 1.98 KB

File metadata and controls

78 lines (66 loc) · 1.98 KB
title DELETEITEMSTRUCT Structure | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
DELETEITEMSTRUCT
dev_langs
C++
helpviewer_keywords
DELETEITEMSTRUCT structure
ms.assetid 48d3998c-f4a8-402a-bf90-df3770a78685
caps.latest.revision 13
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

DELETEITEMSTRUCT Structure

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

Syntax

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

Parameters

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.

Remarks

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.

Requirements

Header: atldbcli.h

See Also

Structures, Styles, Callbacks, and Message Maps
CWnd::OnDeleteItem