Funktionsreferenz

_GUICtrlComboBoxEx_Destroy

Löscht das Control

#Include <GuiComboBoxEx.au3>
_GUICtrlComboBoxEx_Destroy(ByRef $hWnd)

 

Parameter

$hWnd Handle des Controls

 

Rückgabewert

Erfolg: True, Handle wird auf 0 gesetzt
Fehler: False

 

Bemerkungen

Funktioniert nur mit ComboBox, welche mit _GUICtrlComboBoxEx_Create erstellt wurden

- - - - - - - - Erklärung der Controls - - - - - - - -

 

Verwandte Funktionen

_GUICtrlComboBoxEx_Create

 

Beispiel


#include <GuiComboBoxEx.au3>
#include <GuiConstantsEx.au3>

Opt('MustDeclareVars', 1)

$Debug_CB = False ; Prüft den Klassennamen (ClassName), der an die ComboBox/ComboBoxEx-Funktion übergeben wird. Setze dies versuchsweise auf True und verwende dann ein Handle zu einem anderen Control, um die Funktionsweise zu verstehen.

_Main()

Func _Main()
    Local $hGUI, $hCombo

    ; Erstellt ein GUI
    $hGUI = GUICreate("ComboBoxEx: Control zerstören", 400, 300)
    $hCombo = _GUICtrlComboBoxEx_Create ($hGUI, "Dies ist ein Test|Zeile 2", 2, 2, 394, 268)
    GUISetState()

    _GUICtrlComboBoxEx_AddString ($hCombo, "Noch mehr Text")
    _GUICtrlComboBoxEx_InsertString ($hCombo, "Eingefügter Text", 1)

    ; Zerstört das Control
    MsgBox(266256, "Information", "Zerstört das Control")
    _GUICtrlComboBoxEx_Destroy ($hCombo)


    ; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>_Main