UDF > GUI > GuiComboBoxEx >


_GUICtrlComboBoxEx_Destroy

Supprime le contr�le

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

Param�tre

$hWnd Handle du contr�le

Valeur de retour

Succ�s: Retourne True, $hWnd est d�fini � 0.
�chec: Retourne False.

Remarque

R�serv� exclusivement aux contr�les ComboBoxEx cr��s avec _GUICtrlComboBoxEx_Create().

En relation

_GUICtrlComboBoxEx_Create

Exemple

#include <GuiComboBoxEx.au3>
#include <GUIConstantsEx.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
    Local $hGUI, $hCombo

    ; Cr�e une GUI
    $hGUI = GUICreate("ComboBoxEx Destroy", 400, 300)
    $hCombo = _GUICtrlComboBoxEx_Create($hGUI, "This is a test|Line 2", 2, 2, 394, 268)
    GUISetState(@SW_SHOW)

    _GUICtrlComboBoxEx_AddString($hCombo, "Some More Text")
    _GUICtrlComboBoxEx_InsertString($hCombo, "Inserted Text", 1)

    ; D�truit le contr�le
    MsgBox($MB_SYSTEMMODAL, "Information", "Destroy the control")
    _GUICtrlComboBoxEx_Destroy($hCombo)

    ; Boucle jusqu'� ce que l'utilisateur quitte
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example