Share via


CToolBar::LoadToolBar

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

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

Parameters

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

  • nIDResource
    Resource ID of the toolbar to be loaded.

Return Value

Nonzero if successful; otherwise 0.

Remarks

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

Example

See the example for CToolBar::CreateEx.

Requirements

Header: afxext.h

See Also

Reference

CToolBar Class

Hierarchy Chart

CToolBar::Create

CToolBar::LoadBitmap

CToolBar::SetButtons