Function Reference

_GUICtrlListGetLocale

Current Locale of the listbox

#Include <GuiList.au3>
_GUICtrlListGetLocale($h_listbox)

 

Parameters

$h_listbox control id/control hWnd

 

Return Value

Returns the current Local of the listbox
same as @OSLang unless changed

 

Remarks

"0409" for U.S. English

 

Related

_GUICtrlListSetLocale

 

Example


#include <GUIConstants.au3>
#include <GuiList.au3>

Opt ('MustDeclareVars', 1)

Dim $msg, $ret, $listbox, $button

GUICreate("ListBox Get Locale Demo", 400, 250, -1, -1)
$listbox = GUICtrlCreateList("", 125, 40, 180, 120)
GUICtrlSetData($listbox, "test1|more testing|even more testing|demo|test2|test3|test4|test5|test6|test7|test8|test9|test10")
$button = GUICtrlCreateButton('Get Locale', 150, 160, 120, 40)

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $button
            $ret = _GUICtrlListGetLocale ($listbox)
            If ($ret == $LB_ERR) Then
                MsgBox(16, "Error", "Unknown error from _GUICtrlListGetLocale")
            Else
                MsgBox(0, "Locale", $ret)
            EndIf
    EndSelect
WEnd