Function Reference


_GUICtrlComboBoxEx_GetUnicode

Retrieves if control is using Unicode

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

Parameters

$hWnd Handle to the control

Return Value

True: Using Unicode.
False: Not using Unicode.

Related

_GUICtrlComboBoxEx_SetUnicode

Example

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

Example()

Func Example()
    Local $hGUI, $hCombo

    ; Create GUI
    $hGUI = GUICreate("ComboBoxEx Get/Set Unicode", 400, 300)
    $hCombo = _GUICtrlComboBoxEx_Create($hGUI, "", 2, 2, 394, 100, $CBS_SIMPLE)
    GUISetState(@SW_SHOW)

    _GUICtrlComboBoxEx_InitStorage($hCombo, 150, 300)
    _GUICtrlComboBoxEx_BeginUpdate($hCombo)

    For $x = 0 To 149
        _GUICtrlComboBoxEx_AddString($hCombo, StringFormat("%03d : Random string", Random(1, 100, 1)))
    Next
    _GUICtrlComboBoxEx_EndUpdate($hCombo)

    ;Set/Get Unicode
    MsgBox($MB_SYSTEMMODAL, "Information", "Set Unicode: " & _GUICtrlComboBoxEx_SetUnicode($hCombo, False))
    MsgBox($MB_SYSTEMMODAL, "Information", "Get Unicode: " & _GUICtrlComboBoxEx_GetUnicode($hCombo))

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