LB_GETLOCALE
An application sends an LB_GETLOCALE message to retrieve 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.
wParam
This parameter is not used.
lParam
This parameter is not used.
The return value is a 32-bit value that specifies the current locale of the list box. The high word contains the country code and the low word contains the language ID.
The language ID is made up of a sublanguage ID and a primary language ID. Macros exist for extracting these individual IDs. The PRIMARYLANGID macro is used to obtain the primary language ID. The SUBLANGID macro is used to obtain the sublanguage ID.
LB_SETLOCALE