Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

g_nLangIdNeutral The language identifier that is used by the CExtResourceManager class as the identifier of an neutral language. The default value corresponds to English (US).

Classes

~CExtResourceManager Destructor.
AllowCustomLang Enables or disables the feature that allows the resource manager first to make an attempt to load the resources corresponding to the language set with the CExtResourceManager::SetLangIdDesired() method. If this feature is enabled and the resources corresponding to this desired language is not found, the resource manager loads the English resources (English is set as a default language, but you can change it to any other by modifying the g_nLangIdNeutral property). If the feature is disabled, the standard Windows API is used for loading resources.
CExtResourceManager Constructor.
FindResourceHandle Returns the module handle, resource handle, and language identifier for the specified resource name and type. The method returns NULL if the resource is not found.
FindResourceHandleEx �Returns the module handle, resource handle, and language identifier for the specified resource name and type. The method returns NULL if the resource is not found. Unlike the CExtResourceManager::FindResourceHandle() method, FindResourceHandleEx allows you to explicitly specify the desired and neutral languages.
FindResourceHandleSingleLanguage Returns the module handle, resource handle and resource language identifier for the specified resource name and type. The method returns NULL if the resource is not found. The method makes an attempt to find the specified resource only for the desired language specified with the nLangIdDesired parameter.
GetCurrencyFormat Formats a number string as a currency string for the current locale and returns the number of characters written to the buffer pointed to by lpCurrencyStr, or, if the cchCurrency parameter is zero, the number of characters required to hold the formatted currency string. The count includes the terminating null. Zero indicates failure. You can read more about this method in the MSDN.
GetDateFormat Formats a date as a date string for the current locale and returns the number of characters written to the lpDateStr buffer, or, if the cchDate parameter is zero, the number of characters required to hold the formatted date string. The count includes the terminating null. You can read more about this method in the MSDN.
GetLangIdDesired Returns the desired language identifier that is used by the resource manager for loading language-dependent resources.
GetLangIdNeutral Returns the neutral language identifier that is used by the resource manager for loading language-dependent resources. The neutral language identifier is used when the resource manager cannot find the resources corresponding to the desired language.
GetLangLayout Returns the currently applied language layout. The DWORD(-1) value means that� the resource manager computes the layout flags from the currently applied language identifier. Otherwise, the return value can be LAYOUT_LTR or LAYOUT_RTL. Within the LAYOUT_RTL value, LAYOUT_BITMAPORIENTATIONPRESERVED can be specified to prevent bitmap flipping.
GetLocaleInfo Retrieves information about a locale. This method is similar to the GetLocaleInfo() Win32 API.
GetNumberFormat Formats a number string as a number string customized for the current locale and returns the number of characters written to the buffer pointed to by lpNumberStr, or, if the cchNumber parameter is zero, the number of characters required to hold the formatted number string indicates success. The count includes the terminating null. Zero indicates failure. You can read more about this method in the MSDN.
GetTimeFormat Formats a time as a time string for the current locale and returns the number of characters written to the buffer pointed to by lpTimeStr indicates success. If the cchTime parameter is zero, the number of characters required to hold the formatted time string. The count includes the terminating null. Zero indicates failure. You can read more about this method in the MSDN.
IsCustomLangAllowed Returns true if the feature that allows the resource manager first to make an attempt to load the resources corresponding to the language set with the CExtResourceManager::SetLangIdDesired() method is enabled or false if the feature is disabled.
LoadAccelerators Loads the accelerator table resource and returns its handle if successful or NULL otherwise.
LoadAcceleratorsEx Loads the accelerator table resource and returns its handle if successful or NULL otherwise. Unlike the CExtResourceManager::LoadAccelerators() method, LoadAcceleratorsEx() allows you to explicitly specify the desired and neutral languages.
LoadBitmap Loads the bitmap resource and returns true if successful or false otherwise.
LoadBitmapEx Loads the bitmap resource and returns true if successful or false otherwise. Unlike LoadBitmap(), LoadBitmapEx() allows you to explicitly specify the desired and neutral languages.
LoadMenu Loads the menu resource and returns true if successful.
LoadMenuEx �Loads the menu resource and returns true if successful. Unlike the CExtResourceManager::LoadMenu() method, LoadMenuEx() allows you to explicitly specify the desired and neutral languages.
LoadString Loads the string resource and returns true if successful.
LoadStringEx �Loads the string resource and returns true if successful. Unlike the CExtResourceManager::LoadString() method, LoadStringEx() allows you to explicitly specify the desired and neutral languages.
SetLangIdDesired Sets the desired language identifier that is used by the resource manager for loading language-dependent resources.
SetLangLayout Sets the desired language layout.

See Also

CExtResourceManager Overview | Hierarchy Chart