Поделиться через


CToolBar::LoadBitmap

Call this member function to load the bitmap specified by lpszResourceName or nIDResource.

BOOL LoadBitmap(
   LPCTSTR lpszResourceName 
);
BOOL LoadBitmap(
   UINT nIDResource 
);

Параметры

  • lpszResourceName
    Pointer to the resource name of the bitmap to be loaded.

  • nIDResource
    Resource ID of the bitmap to be loaded.

Возвращаемое значение

Nonzero if successful; otherwise 0.

Заметки

The bitmap should contain one image for each toolbar button. If the images are not of the standard size (16 pixels wide and 15 pixels high), call SetSizes to set the button sizes and their images.

Требования

Header: afxext.h

См. также

Основные понятия

CToolBar Class

CToolBar Members

Hierarchy Chart

CToolBar::Create

CToolBar::SetButtons

CToolBar::SetSizes

CToolBar::LoadToolBar