Function Reference


_GUICtrlComboBoxEx_SetUnicode

Sets if control is using Unicode

#include <GuiComboBoxEx.au3>
_GUICtrlComboBoxEx_SetUnicode ( $hWnd [, $bUnicode = True] )

Parameters

$hWnd Handle to the control
$bUnicode [optional] May be one of the following:
    True - Turn on Unicode
    False - Turn off Unicode

Return Value

Success: True.
Failure: False.

Related

_GUICtrlComboBoxEx_GetUnicode

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