Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>loadbitmap()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LoadBitmap()
Load a standard Windows bitmap or a bitmap resource
------------------------------------------------------------------------------

Syntax
LoadBitmap( <hInst>, <nBitmap> | <cBitmap> )   -->   hBitmap

Arguments
<hInst> is the handle of the instance of the application (as
returned by the _GetInstance() function), or a handle of a DLL
(as returned by the LoadLibrary() function).  The default is the
current application.

<nBitmap> is the number identifying the pre-defined bitmap to
load (one of the OBM_* values defined in WINDOWS.CH), or the
numeric id of a bitmap resource.

<cBitmap> is the name of a bitmap resource.

Returns
If successful, the handle to the bitmap is returned as a non-
zero number.  Otherwise, zero (0) is returned.

Description
This function can be used to access the standard (pre-defined)
bitmaps known to Windows, or bitmap resources.

If an application uses this function, it should call the
DeleteObject() function when it has finished using the handle
to the bitmap.

Example
hBitmap = LoadBitmap( hInst, OBM_CHECK )     // a tick (or
check mark)


See Also: DeleteObject() GetDC()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson