XLL+ Class Library (6.3)

::ResLoadBitmap

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

HBITMAP ResLoadBitmap(
   HINSTANCE hinst,
   UINT uBitmapID,
   LANGID langid
);

Parameters

hinst

Module handle of a resource file.

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