This documentation is archived and is not being maintained.

CToolBarCtrl::SetButtonInfo

Sets the information for an existing button in a toolbar.

BOOL SetButtonInfo( 
   int nID, 
   TBBUTTONINFO* ptbbi  
);

nID

The button identifier.

ptbbi

A pointer to a TBBUTTONINFO structure that receives the button information.

Nonzero if successful; otherwise 0.

The member function implements the behavior of the Win32 message TB_SETBUTTONINFO, as described in the Windows SDK.

Header: afxcmn.h

Show: