Funktionreferenz


_GUICtrlListBox_GetLocaleCountry

Beschreibung anzeigen in

Ermittelt den aktuellen Ländercode

#include <GuiListBox.au3>
_GUICtrlListBox_GetLocaleCountry ( $hWnd )

Parameter

$hWnd Control-ID / Handle des Controls

Rückgabewert

Gibt den Ländercode der List-Box zurück.

Bemerkungen

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

Verwandte Funktionen

_GUICtrlListBox_GetLocale

Beispiel

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

Example()

Func Example()
    Local $idListBox

    ; Erstellt eine GUI
    GUICreate("ListBox: Ermittelt den Ländercode", 400, 296)
    $idListBox = GUICtrlCreateList("", 2, 2, 396, 296)
    GUISetState(@SW_SHOW)

    ; Zeigt die Gebietsschema-Einstellung, den Ländercode und die Sprach-Identifizierer an
    MsgBox($MB_SYSTEMMODAL, "Information", _
            "Gebietsschema ...: " & _GUICtrlListBox_GetLocale($idListBox) & @CRLF & _
            "Ländercode ......: " & _GUICtrlListBox_GetLocaleCountry($idListBox) & @CRLF & _
            "Sprach-ID........: " & _GUICtrlListBox_GetLocaleLang($idListBox) & @CRLF & _
            "Primäre Sprach-ID: " & _GUICtrlListBox_GetLocalePrimLang($idListBox) & @CRLF & _
            "Sub-Sprach-ID ...: " & _GUICtrlListBox_GetLocaleSubLang($idListBox))

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