Поделиться через


CListBox::SetLocale

Sets the locale identifier for this list box.

LCID SetLocale(
   LCID nNewLocale 
);

Параметры

  • nNewLocale
    The new locale identifier (LCID) value to set for the list box.

Возвращаемое значение

The previous locale identifier (LCID) value for this list 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.

Пример

// My LCID to use.
LCID mylcid = MAKELCID(MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH_MEXICAN), 
   SORT_DEFAULT);

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

Требования

Header: afxwin.h

См. также

Основные понятия

CListBox Class

CListBox Members

Hierarchy Chart

CListBox::GetLocale