LB_SETLOCALE

LB_SETLOCALE

An application sends an LB_SETLOCALE message to set the current locale of the list box. The locale of a list box is used to determine the correct sorting order of displayed text for list boxes with the LBS_SORT style and text that is added using LB_ADDSTRING.

Parameters

wParam

Contains the locale ID the list box will use for sorting when adding text.

lParam

This parameter is not used.

Return Value

The return value is the previous locale ID. LB_ERR is returned if wParam specifies a locale not installed on the system. In this case the current list box locale is not changed.

Comments

A locale ID can be constructed using the MAKELCID macro. The language ID is made up of a sublanguage ID and a primary language ID. The MAKELANGID macro can be used to construct the language ID.

See Also

LB_GETLOCALE