WM _ DELETEITEM メッセージWM_DELETEITEM message
リストボックスまたはコンボボックスが破棄されたとき、または lb _ deletestring、 lb _ resetcontent、 cb _ deletestring、または cb _ resetcontent メッセージによって項目が削除されたときに、リストボックスまたはコンボボックスの所有者に送信されます。Sent to the owner of a list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message. システムは、削除された項目ごとに WM _ DELETEITEM メッセージを送信します。The system sends a WM_DELETEITEM message for each deleted item. システムは、0以外の項目データを含む、削除されたリストボックスまたはコンボボックス項目の WM _ DELETEITEM メッセージを送信します。The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.
WM_DELETEITEM
WPARAM wParam;
LPARAM lParam;
パラメーターParameters
-
wParamwParam
-
WM _ DELETEITEM メッセージを送信したコントロールの識別子を指定します。Specifies the identifier of the control that sent the WM_DELETEITEM message.
-
lParamlParam
-
リストボックスから削除された項目に関する情報を格納している DELETEITEMSTRUCT 構造体へのポインター。Pointer to a DELETEITEMSTRUCT structure that contains information about the item deleted from a list box.
戻り値Return value
アプリケーションは、このメッセージを処理する場合に TRUE を返す必要があります。An application should return TRUE if it processes this message.
解説Remarks
Microsoft Windows NT 以降: Windows は、オーナー描画リストボックスから削除された項目に対してのみ WM _ DELETEITEM メッセージを送信します ( ポンド _ Ownerdrawfixed または kg _ drawvariable スタイルを使用)。またはオーナー描画コンボボックス ( cbs _ ownerdrawfixed または cbs _ ownerdrawfixed スタイルを使用)。Microsoft Windows NT and later: Windows sends a WM_DELETEITEM message only for items deleted from an owner-drawn list box (with the LBS_OWNERDRAWFIXED or LBS_OWNERDRAWVARIABLE style) or owner-drawn combo box (with the CBS_OWNERDRAWFIXED or CBS_OWNERDRAWVARIABLE style).
Windows 95: Windows では、削除されたリストボックスまたはコンボボックスの項目データが0以外の場合、 WM _ DELETEITEM メッセージが送信されます。Windows 95: Windows sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.
必要条件Requirements
要件Requirement | 値Value |
---|---|
サポートされている最小のクライアントMinimum supported client |
Windows Vista [ デスクトップアプリのみ]Windows Vista [desktop apps only] |
サポートされている最小のサーバーMinimum supported server |
Windows Server 2003 [ デスクトップアプリのみ]Windows Server 2003 [desktop apps only] |
ヘッダーHeader |
|