XLL+ Class Library

::XllLoadBitmapForLanguage

Loads a bitmap from a resource file, using the specified language

[C++]
HBITMAP XllLoadBitmapForLanguage(
   UINT uBitmapID,
   LANGID langid
);

Parameters

uBitmapID

Numeric bitmap resource identifier.

langid

The language ID of the desired language. This can be formed using the MAKELANGID(...) macro, or found using LANGIDFROMLCID(GetThreadLocale()).

Return value

A handle to the loaded bitmap if the function succeeds, NULL if it fails. The bitmap should be released with DeleteObject when no longer in use.

Remarks

This function loads a bitmap from a resource file, using the specified language if possible.

The bitmap should be released with DeleteObject when no longer in use.

Requirements

Header: xllres.h

See Also

Global resource functions