Funktionreferenz


_GUICtrlComboBox_GetLocaleCountry

Beschreibung anzeigen in

Ermittelt den aktuellen Ländercode

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

Parameter

$hWnd Control-ID / Handle des Controls

Rückgabewert

Gibt den Ländercode der ComboBox zurück.

Bemerkungen

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

Verwandte Funktionen

_GUICtrlComboBox_GetLocale

Beispiel

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

Example()

Func Example()
    Local $idCombo

    ; Erstellt eine GUI
    GUICreate("ComboBox: Ermittelt das Gebietsschema", 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)

    ; Zeigt Gebietsschema, Ländercode und diverse Sprachen-Identifizierer an
    MsgBox($MB_SYSTEMMODAL, "Information", _
            "Gebietsschema .....: " & _GUICtrlComboBox_GetLocale($idCombo) & @CRLF & _
            "Ländercode ........: " & _GUICtrlComboBox_GetLocaleCountry($idCombo) & @CRLF & _
            "Sprachen-ID .......: " & _GUICtrlComboBox_GetLocaleLang($idCombo) & @CRLF & _
            "Primäre Sprachen-ID: " & _GUICtrlComboBox_GetLocalePrimLang($idCombo) & @CRLF & _
            "Sub-Sprachen-ID ...: " & _GUICtrlComboBox_GetLocaleSubLang($idCombo))

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