SECToolBarManager::LoadToolBarResource

Loads the toolbar bitmap resource to be referenced by all custom toolbar button objects.

Defined in: tbarmgr.cpp

Syntax

LoadToolBarResource()

LoadToolBarResource(LPCTSTR lpszStdBmpName,LPCTSTR lpszLargeBmpName)

LoadToolBarResource(UINT nIDStdBmp, UINT nIDLargeBmp)

Return Value

True if toolbar bitmap was successfully loaded.

Parameters

lpszStdBmpName

Resource string for bitmap of the standard size buttons.

lpszLargeBmpName

Resource string for bitmap of the large size buttons. If you are not supplying "large button mode", you can use the same resource string as specified by lpszStdBmpName.

nIDStdBmp

Like lpszStdBmpName, but a resource id.

nIDLargeBmp

Like lpszLargeBmpName, but a resource id.

Comments

Call this function to load the toolbar bitmap resource to be used by all custom toolbar buttons. If first overload is used (no parameters), then use this function in conjunction with AddToolBarResource to concatenate multiple toolbar bitmaps into 1 global resource. This is useful for surpassing the 2048 pixel width limitation imposed by Developer Studio.

Example

CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
SECToolBarManager* pToolBarMgr=(SECToolBarManager *)m_pControlBarManager;
VERIFY(pToolBarMgr->LoadToolBarResource(
 MAKEINTRESOURCE(IDR_MAINFRAME),
 MAKEINTRESOURCE(IDR_MAINFRAME_LG)));
...

See Also

AddToolBarResource

AddBitmapResource