CBitmapButton::LoadBitmaps

This function loads bitmap images identified by their resource names or identifier numbers, or when you cannot use the AutoLoad function. For example, you could use this function if you are creating a bitmap button that is not part of a dialog box.

Syntax

BOOL LoadBitmaps( LPCTSTR lpszBitmapResource, LPCTSTR lpszBitmapResourceSel = NULL, LPCTSTR lpszBitmapResourceFocus = NULL, LPCTSTR lpszBitmapResourceDisabled = NULL );

BOOL LoadBitmaps( UINT nIDBitmapResource, UINT nIDBitmapResourceSel = 0, UINT nIDBitmapResourceFocus = 0, UINT nIDBitmapResourceDisabled = 0 );

At a Glance

Header file: Afxext.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CBitmapButton Overview, CBitmapButton Member Functions, Control Classes, CBitmapButton::AutoLoad, CBitmapButton::SizeToContent, CButton::Create, CBitmap::LoadBitmap