CComboBox::SetLocale

LCID SetLocale( LCID nNewLocale );

Return Value

The previous locale identifier (LCID) value for this combo box.

Parameters

nNewLocale

The new locale identifier (LCID) value to set for the combo box.

Remarks

Sets the locale identifier for this combo box. If SetLocale is not called, the default locale is obtained from the system. This system default locale can be modified by using Control Panel’s Regional (or International) application.

Example

// The pointer to my combo box.
extern CComboBox* pmyComboBox;
// My LCID to use.
LCID mylcid = MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH_MEXICAN), 
   SORT_DEFAULT);

// Force the list box to use my locale.
pmyComboBox->SetLocale(mylcid);
ASSERT(pmyComboBox->GetLocale() == mylcid);

CComboBox OverviewClass MembersHierarchy Chart

See Also   CComboBox::GetLocale