please dont rip this site Prev Next

LoadBitmap info  Overview  Group

The LoadBitmap function loads the specified bitmap resource from a module’s executable file. This function has been superseded by the LoadImage function.

HBITMAP LoadBitmap(

    HINSTANCE hInstance,

// handle of application instance

    LPCTSTR lpBitmapName 

// address of bitmap resource name

   );

Parameters

hInstance
Identifies the instance of the module whose executable file contains the bitmap to be loaded.
lpBitmapName
Points to a null-terminated string that contains the name of the bitmap resource to be loaded. Alternatively, this parameter can consist of the resource identifier in the low-order word and zero in the high-order word. The MAKEINTRESOURCE macro can be used to create this value.

Return Values

If the function succeeds, the return value is the handle of the specified bitmap.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

Remarks

If the bitmap pointed to by the lpBitmapName parameter does not exist or there is insufficient memory to load the bitmap, the function fails.

An application can use the LoadBitmap function to access the predefined bitmaps used by the Win32 API. To do so, the application must set the hInstance parameter to NULL and the lpBitmapName parameter to one of the following values:

OBM_BTNCORNERS

OBM_OLD_RESTORE

OBM_BTSIZE

OBM_OLD_RGARROW

OBM_CHECK

OBM_OLD_UPARROW

OBM_CHECKBOXES

OBM_OLD_ZOOM

OBM_CLOSE

OBM_REDUCE

OBM_COMBO

OBM_REDUCED

OBM_DNARROW

OBM_RESTORE

OBM_DNARROWD

OBM_RESTORED

OBM_DNARROWI

OBM_RGARROW

OBM_LFARROW

OBM_RGARROWD

OBM_LFARROWD

OBM_RGARROWI

OBM_LFARROWI

OBM_SIZE

OBM_MNARROW

OBM_UPARROW

OBM_OLD_CLOSE

OBM_UPARROWD

OBM_OLD_DNARROW

OBM_UPARROWI

OBM_OLD_LFARROW

OBM_ZOOM

OBM_OLD_REDUCE

OBM_ZOOMD

Bitmap names that begin with OBM_OLD represent bitmaps used by Windows versions earlier than 3.0.

For an application to use any of the OBM_ constants, the constant OEMRESOURCE must be defined before the WINDOWS.H header file is included.

The application must call the DeleteObject function to delete each bitmap handle returned by the LoadBitmap function.

See Also

CreateBitmap, DeleteObject, LoadCursor, LoadIcon, LoadImage, MAKEINTRESOURCE

See:


file: /Techref/os/win/api/win32/func/src/f53_9.htm, 6KB, , updated: 2001/6/26 10:24, local time: 2024/11/12 16:49,
TOP NEW HELP FIND: 
18.221.11.166:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/Techref/os/win/api/win32/func/src/f53_9.htm"> LoadBitmap</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .