Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CBitmap::LoadBitmap
CBitmap                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL LoadBitmap( const char FAR* lpBitmapName );
  BOOL LoadBitmap( UINT nIDBitmap );
 
  Parameter      Description
 
  <lpBitmapName> Points to a null-terminated string that contains the name
                 of the bitmap resource.
 
  <nIDBitmap>    Specifies the resource ID number of the bitmap resource.
 
  Remarks
 
  Loads the bitmap resource named by <lpBitmapName> or identified by the
  ID number in <nIDBitmap> from the application's executable file. The
  loaded bitmap is attached to the CBitmap object.
 
  If the bitmap identified by <lpBitmapName> does not exist or if there is
  insufficient memory to load the bitmap, the function returns FALSE.
 
  Return Value
 
  TRUE if successful; otherwise FALSE.
 
  See Also
 
  CBitmap::LoadOEMBitmap, ::LoadBitmap
 
 
                                     -♦-