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::CreateBitmapIndirect
CBitmap                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL CreateBitmapIndirect( LPBITMAP lpBitmap );
 
  Parameter   Description
 
  <lpBitmap>  Points to a BITMAP structure that contains information about
              the bitmap.
 
  Remarks
 
  Initializes a bitmap that has the width, height, and bit pattern (if one
  is specified) given in the structure pointed to by <lpBitmap>. Although
  a bitmap cannot be directly selected for a display device, it can be
  selected as the current bitmap for a memory device context by using
  CDC::SelectObject or CMetaFileDC::SelectObject and copied to any
  compatible device context by using the CDC::BitBlt function.
 
  When an application has finished using the bitmap initialized by
  CreateBitmapIndirect, it should select the bitmap out of the device
  context.
 
  Return Value
 
  TRUE if successful; otherwise FALSE.
 
  See Also
 
  CDC::SelectObject, CMetaFileDC::SelectObject, CDC::BitBlt,
  ::CreateBitmapIndirect
 
 
                                     -♦-