Function Reference

_GUICtrlListViewGetUnicodeFormat

Retrieves the UNICODE character format flag for the control

#Include <GuiListView.au3>
_GUICtrlListViewGetUnicodeFormat($h_listview)

 

Parameters

$h_listview control id/control hWnd

 

Return Value

If this value is nonzero, the control is using Unicode characters.
If this value is zero, the control is using ANSI characters.

 

Remarks

The Unicode format flag is used by Microsoft Windows NT systems
with version 4.71 of Comctl32.dll or later. This message is, thus,
supported by Windows 2000 and later, and by Windows NT 4 with Microsoft
Internet Explorer 4.0 or later. It is only useful on Windows 95 or Windows 98
systems with version 5.80 or later of Comctl32.dll.

This means that they must have Internet Explorer 5 or later installed.
Windows 95 and Windows 98 systems with earlier versions of Internet Explorer
ignore the Unicode format flag, and its value has no bearing on whether a control
supports Unicode. With these systems, you will instead need to test something that
requires Unicode support.

 

Related

None.

 

Example


#include <GuiConstants.au3>
#include <GuiListView.au3>

Opt ('MustDeclareVars', 1)
Dim $listview, $Btn_Exit, $msg, $Status
GUICreate("ListView Get Unicode Format", 392, 322)

$listview = GUICtrlCreateListView("col1|col2|col3", 40, 30, 310, 149)
GUICtrlCreateListViewItem("line1|data1|more1", $listview)
GUICtrlCreateListViewItem("line2|data2|more2", $listview)
GUICtrlCreateListViewItem("line3|data3|more3", $listview)
GUICtrlCreateListViewItem("line4|data4|more4", $listview)
GUICtrlCreateListViewItem("line5|data5|more5", $listview)
$Btn_Exit = GUICtrlCreateButton("Exit", 160, 260, 70, 30)
$Status = GUICtrlCreateLabel("", 0, 302, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER))
If (_GUICtrlListViewGetUnicodeFormat ($listview)) Then
    GUICtrlSetData($Status, "ListView is using Unicode Characters")
Else
    GUICtrlSetData($Status, "ListView is using ANSI Characters")
EndIf

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
            ExitLoop
    EndSelect
WEnd
Exit