Retrieves the information for a button in a toolbar.
int GetButtonInfo(
   int nID,
   TBBUTTONINFO* ptbbi 
) const;
Parameters
- nID 
 The button identifier.
- ptbbi 
 A pointer to a TBBUTTONINFO structure that receives the button information.
Return Value
The zero-based index of the button, if successful; otherwise -1.
Remarks
This member function implements the behavior of the Win32 message TB_GETBUTTONINFO, as described in the Windows SDK.
Requirements
Header: afxcmn.h