Retire tous les �l�ments de la ListBox et modifie le contr�le ComboBox
#include <GuiComboBox.au3>
_GUICtrlComboBox_ResetContent ( $hWnd )
$hWnd | ID/handle du contr�le |
_GUICtrlComboBox_AddString, _GUICtrlComboBox_DeleteString
#include <GuiComboBox.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Example() Func Example() Local $idCombo ; Cr�e une GUI GUICreate("ComboBox Reset Content", 400, 296) $idCombo = GUICtrlCreateCombo("", 2, 2, 396, 296, BitOR($CBS_SIMPLE, $CBS_DISABLENOSCROLL, $WS_VSCROLL)) GUISetState(@SW_SHOW) ; D�finit Edit Text _GUICtrlComboBox_SetEditText($idCombo, "Edit Text") ; Ajoute des fichiers _GUICtrlComboBox_BeginUpdate($idCombo) _GUICtrlComboBox_AddDir($idCombo, @WindowsDir & "\*.exe") _GUICtrlComboBox_EndUpdate($idCombo) Sleep(500) ; R�-initialise le contenu _GUICtrlComboBox_ResetContent($idCombo) ; Boucle jusqu'� ce que l'utilisateur quitte Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example