Sets the UNICODE character format flag for the control
#include <GuiListView.au3>
_GUICtrlListView_SetUnicodeFormat ( $hWnd, $bUnicode )
$hWnd | Control ID/Handle to the control |
$bUnicode | Determines the character set that is used by the control. True - the control will use Unicode False - the control will use ANSI characters. |
_GUICtrlListView_GetUnicodeFormat
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
GUICreate("ListView Get/Set Unicode Format (v" & @AutoItVersion & ")", 400, 300)
Local $idListview = GUICtrlCreateListView("", 2, 2, 394, 268)
GUISetState(@SW_SHOW)
; Add columns
_GUICtrlListView_AddColumn($idListview, "Items", 100)
; Set Unicode format
_GUICtrlListView_SetUnicodeFormat($idListview, False)
MsgBox($MB_SYSTEMMODAL, "Information", "Unicode: " & _GUICtrlListView_GetUnicodeFormat($idListview))
_GUICtrlListView_SetUnicodeFormat($idListview, True)
MsgBox($MB_SYSTEMMODAL, "Information", "Unicode: " & _GUICtrlListView_GetUnicodeFormat($idListview))
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example