Funktionreferenz


_GUICtrlComboBoxEx_GetLocale

Beschreibung anzeigen in

Ermittelt das aktuelle Gebietsschema

#include <GuiComboBoxEx.au3>
_GUICtrlComboBoxEx_GetLocale ( $hWnd )

Parameter

$hWnd Handle des Controls

Rückgabewert

Gibt das High Order Word zurück. Dieses enthält den Ländercode und das Low Order Word des Sprachcodes.

Bemerkungen

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

Verwandte Funktionen

_GUICtrlComboBoxEx_GetLocaleCountry, _GUICtrlComboBoxEx_GetLocaleLang, _GUICtrlComboBoxEx_GetLocalePrimLang, _GUICtrlComboBoxEx_GetLocaleSubLang

Beispiel

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

Example()

Func Example()
    Local $hGui, $hCombo

    ; Erstellt eine GUI
    $hGui = GUICreate("ComboBoxEx: Ermittelt das aktuelle Gebietsschema", 500, 300)
    $hCombo = _GUICtrlComboBoxEx_Create($hGui, "", 2, 2, 394, 100)
    GUISetState(@SW_SHOW)

    ; Fügt Dateien hinzu
    _GUICtrlComboBoxEx_AddDir($hCombo, "", $DDL_DRIVES, False)

    ; Zeigt: Gebietsschema, Ländercode, Sprach-ID, primäre Sprach-ID, Sub-Sprachen-ID
    MsgBox($MB_SYSTEMMODAL, "Information", _
            "Gebietsschema .....: " & _GUICtrlComboBoxEx_GetLocale($hCombo) & @CRLF & _
            "Ländercode .........: " & _GUICtrlComboBoxEx_GetLocaleCountry($hCombo) & @CRLF & _
            "Sprach-ID............: " & _GUICtrlComboBoxEx_GetLocaleLang($hCombo) & @CRLF & _
            "primäre Sprach-ID..: " & _GUICtrlComboBoxEx_GetLocalePrimLang($hCombo) & @CRLF & _
            "Sub-Sprachen-ID....: " & _GUICtrlComboBoxEx_GetLocaleSubLang($hCombo))

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example