CcomboBox und DeleteItem
-
Also ich benutze CcomboBox und will davon DeleteItem() benutzen.
Die Funktion erwartet LPDELETEITEMSTRUCT lpDeleteItemStruct
Wie komme ich an diesen pointer rein ??

-
-
estartu_de schrieb:
trozdem kapire ich es nicht

-
Also, du musst so einen struct erzeugen und füllen.
Das ist wohl etwa so gedacht:
CtlType
Specifies ODT_LISTBOX (an owner-drawn list box) or ODT_COMBOBOX (an owner-drawn combo box).
Du hast eine Combobox also: ODT_COMBOBOXCtlID
Specifies the identifier of the list box or combo box.
Das ist das IDC_Irgendwas von der Combobox.itemID
Specifies index of the item in the list box or combo box being removed.
Den wievielten Eintrag soll er löschen? Bei 0 mit zählen anfangen!hwndItem
Identifies the control.
Okay, das weiß ich dann leider doch nicht - schäm!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.
Ich glaube den brauchst du nicht füllen.So, viel mehr kann ich dir nicht helfen, ich nehme an der Stelle immer DeleteString, das ist einfacher.

-
erstens danke

ich habe es mit ResetContent gelöst
-
Sach doch, dass du alles löschen willst.

Naja, hauptsache es funzt!