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


IAxWinAmbientDispatch::get_LocaleID

The LocaleID property specifies the ambient locale ID of the container.

STDMETHOD( get_LocaleID )(
   LCID* plcidLocaleID 
);

Параметры

  • plcidLocaleID
    [out] The address of a variable to receive the current value of this property.

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

A standard HRESULT value.

Заметки

The ATL host object implementation uses the user's default locale as the default value of this property.

With this method you can discover the Ambient LocalID, that is, the LocaleID of the program your control is being used in. Once you know the LocaleID, you can call code to load locale-specific captions, error message text, and so forth from a resource file or satellite DLL.

Требования

Header: atliface.h

См. также

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

IAxWinAmbientDispatch Interface

IAxWinAmbientDispatch Members