Legt fest, ob das Control Unicode verwenden soll
#Include <GuiComboBoxEx.au3>
_GUICtrlComboBoxEx_SetUnicode($hWnd[, $fUnicode = True])
Parameter
| $hWnd | Handle zu dem Control |
| $fUnicode | [optional] kann eines der folgenden sein True - schaltet Unicode ein False - schaltet Unicode aus |
Rückgabewert
| Erfolg: | True |
| Fehler: | False |
Bemerkungen
- - - - - - - - Erklärung der Controls - - - - - - - -
Verwandte Funktionen
_GUICtrlComboBoxEx_GetUnicode
Beispiel
#include <GuiComboBoxEx.au3>
#include <GuiConstantsEx.au3>
Opt('MustDeclareVars', 1)
$Debug_CB = False ; Prüft den Klassennamen (ClassName), der an die ComboBox/ComboBoxEx-Funktion übergeben wird. Setze dies versuchsweise auf True und verwende dann ein Handle zu einem anderen Control, um die Funktionsweise zu verstehen.
_Main()
Func _Main()
Local $hGUI, $hCombo
; Erstellt eine GUI
$hGUI = GUICreate("ComboBoxEx: Ermittelt/setzt Unicode", 400, 300)
$hCombo = _GUICtrlComboBoxEx_Create($hGUI, "", 2, 2, 394, 100, $CBS_SIMPLE)
GUISetState()
_GUICtrlComboBoxEx_InitStorage($hCombo, 150, 300)
_GUICtrlComboBoxEx_BeginUpdate($hCombo)
For $x = 0 To 149
_GUICtrlComboBoxEx_AddString($hCombo, StringFormat("%03d : Zufallstring", Random(1, 100, 1)))
Next
_GUICtrlComboBoxEx_EndUpdate($hCombo)
; Ermittelt/Setzt Unicode
MsgBox(4160, "Information", "Setzt Unicode: " & _GUICtrlComboBoxEx_SetUnicode($hCombo, False))
MsgBox(4160, "Information", "Ermittelt Unicode: " & _GUICtrlComboBoxEx_GetUnicode($hCombo))
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc ;==>_Main