WORD MAKELANGID(bPrimaryLanguage, bSubLanguage) |
The MAKELANGID macro creates a language ID from a primary language ID and a sublanguage ID.
bPrimaryLanguage
Specifies the primary language ID. This may be one of the following values:
LANG_NEUTRAL | LANG_ALBANIAN |
LANG_ARABIC | LANG_BAHASA |
LANG_BULGARIAN | LANG_CATALAN |
LANG_CHINESE | LANG_CZECH |
LANG_DANISH | LANG_DUTCH |
LANG_ENGLISH | LANG_FINNISH |
LANG_FRENCH | LANG_GERMAN |
LANG_GREEK | LANG_HEBREW |
LANG_HUNGARIAN | LANG_ICELANDIC |
LANG_ITALIAN | LANG_JAPANESE |
LANG_KOREAN | LANG_NORWEGIAN |
LANG_POLISH | LANG_PORTUGUESE |
LANG_RHAETO_ROMAN | LANG_ROMANIAN |
LANG_RUSSIAN | LANG_SERBO_CROATIAN |
LANG_SLOVAK | LANG_SPANISH |
LANG_SWEDISH | LANG_THAI |
LANG_TURKISH | LANG_URDU |
bSubLanguage
Specifies the sublanguage ID. This may be one of the following values:
SUBLANG_DEFAULT | |
SUBLANG_NEUTRAL | |
SUBLANG_CHINESE_SIMPLIFIED | |
SUBLANG_CHINESE_TRADITIONAL | |
SUBLANG_DUTCH | |
SUBLANG_DUTCH_BELGIAN | |
SUBLANG_ENGLISH_US | |
SUBLANG_ENGLISH_UK | |
SUBLANG_ENGLISH_AUS | |
SUBLANG_ENGLISH_CAN | |
SUBLANG_FRENCH | |
SUBLANG_FRENCH_BELGIAN | |
SUBLANG_FRENCH_CANADIAN | |
SUBLANG_FRENCH_SWISS | |
SUBLANG_GERMAN | |
SUBLANG_GERMAN_SWISS | |
SUBLANG_ITALIAN | |
SUBLANG_ITALIAN_SWISS | |
SUBLANG_NORWEGIAN_BOKMAL | |
SUBLANG_NORWEGIAN_NYNORSK | |
SUBLANG_PORTUGUESE | |
SUBLANG_PORTUGUESE_BRAZILIAN | |
SUBLANG_SERBO_CROATIAN_CYRILLIC | |
SUBLANG_SERBO_CROATIAN_LATIN | |
SUBLANG_SPANISH | |
SUBLANG_SPANISH_MEXICAN | |
SUBLANG_SPANISH_MODERN |
The return value is a language ID that can be used as the wLanguage parameter of FindResourceEx and the wIDLanguage parameter of EnumResLangProc.
The following two combinations of bPrimaryLanguage and bSubLanguage have special meaning:
Primary Language ID | Sublanguage ID | Meaning |
LANG_NEUTRAL | SUBLANG_NEUTRAL | Language neutral |
LANG_NEUTRAL | SUBLANG_DEFAULT | Process default language |
The MAKELANGID macro is defined as:
#define MAKELANGID(p, s) ((((USHORT)(s)) << 10) | (USHORT)(p))