CBitmap::LoadBitmap

Syntax

BOOL LoadBitmap( const char FAR* lpBitmapName );

BOOL LoadBitmap( UINT nIDBitmap );

Parameters

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