CToolBarCtrl::GetButton

BOOL GetButton( int nIndex, LPTBBUTTON lpButton ) const;

Return Value

Nonzero if successful; otherwise zero.

Parameters

nIndex

Zero-based index of the button for which to retrieve information.

lpButton

Address of the TBBUTTON structure that is to receive a copy of the button information. See CToolBarCtrl::AddButtons for information about the TBBUTTON structure.

Remarks

Call this function to retrieve information about the specified button in a toolbar control.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::GetState, CToolBarCtrl::SetState, CToolBarCtrl::GetButtonCount, CToolBarCtrl::GetItemRect, CToolBarCtrl::CommandToIndex, CToolBarCtrl::AddButtons, CToolBarCtrl::InsertButton