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


CToolBar::LoadToolBar

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

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

Параметры

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

  • nIDResource
    Resource ID of the toolbar to be loaded.

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

Nonzero if successful; otherwise 0.

Заметки

See toolbar editor in for more information about creating a toolbar resource.

Пример

See the example for CToolBar::CreateEx.

Требования

Header: afxext.h

См. также

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

CToolBar Class

CToolBar Members

Hierarchy Chart

CToolBar::Create

CToolBar::LoadBitmap

CToolBar::SetButtons