Defines the locale of the combo box control.
C
LCID WINAPI SftBox_GetLocale(HWND hwndCtl); LCID WINAPI SftBox_SetLocale(HWND hwndCtl, LCID lcID);
C++
LCID CSftBox::GetLocale() const; LCID CSftBox::SetLocale(LCID lcID);
hwndCtl
The window handle of the combo box control.
lcID
The new locale identifier.
GetLocale returns the locale identifier of the combo box.
SetLocale returns the previous locale identifier.
The GetLocale and SetLocale functions define the locale of the combo box control.
When a combo box is created, its locale identifier is LOCALE_USER_DEFAULT.
The locale is used for all string comparisons performed by the combo box: the searches performed by FindString, FindStringEx, SelectString and related functions, the search as the user types (see SetEditSearchMode) and the sorting performed by SortItems and SortItemsEx when no comparison function is supplied. Without a comparison function, the items are sorted using a case-sensitive comparison (the Windows API CompareString) with this locale.
See Also C/C++ API | Categories | Notifications