CB_GETLOCALE

CB_GETLOCALE

An application sends an CB_GETLOCALE message to retrieve the current locale of the combo box. The locale of a combo box is used to determine the correct sorting order of displayed text for combo boxes with the CBS_SORT style and text that is added using CB_ADDSTRING.

Parameters

wParam

This parameter is not used.

lParam

This parameter is not used.

Return Value

The return value is a 32-bit value that specifies the current locale of the combo box. The high word contains the country code and the low word contains the language ID.

Comments

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.

See Also

CB_SETLOCALE