ListView_SetUnicodeFormat macro (commctrl.h)

Sets the Unicode character format flag for the control. This message allows you to change the character set used by the control at run time rather than having to re-create the control. You can use this macro or send the LVM_SETUNICODEFORMAT message explicitly.

Syntax

BOOL ListView_SetUnicodeFormat(
   HWND hwnd,
   BOOL fUnicode
);

Parameters

hwnd

Type: HWND

A handle to the control.

fUnicode

Type: BOOL

The character set that is used by the control. If this value is nonzero, the control will use Unicode characters. If this value is zero, the control will use ANSI characters.

Return value

Type: BOOL

Returns the previous Unicode format flag for the control.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h

See also

ListView_GetUnicodeFormat