Funktionreferenz


_GUICtrlComboBox_BeginUpdate

Beschreibung anzeigen in

Deaktiviert die Aktualisierung des Control-Items bis _EndUpdate aufgerufen wird

#include <GuiComboBox.au3>
_GUICtrlComboBox_BeginUpdate ( $hWnd )

Parameter

$hWnd Control-ID / Handle des Controls

Rückgabewert

Erfolg: True
Fehler: False

Bemerkungen

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

Verwandte Funktionen

_GUICtrlComboBox_EndUpdate

Beispiel

#include <GUIComboBox.au3>
#include <GuiConstantsEx.au3>

Example()

Func Example()
    Local $idCombo

    ; Erstellt eine GUI
    GUICreate("ComboBox: Updaten starten", 400, 296)
    $idCombo = GUICtrlCreateCombo("", 2, 2, 396, 296)
    GUISetState(@SW_SHOW)

    ; Fügt Dateien hinzu
    _GUICtrlComboBox_BeginUpdate($idCombo)
    _GUICtrlComboBox_AddDir($idCombo, @WindowsDir & "*.exe")
    _GUICtrlComboBox_EndUpdate($idCombo)

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