Help Center

CToolbar.GetButtonmethod

Retrieves information about the specified button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG, BYVAL ptbb AS TBBUTTON PTR) AS BOOLEAN
FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG, BYREF tbb AS TBBUTTON) AS BOOLEAN
FUNCTION GetButton (BYVAL hToolbar AS HWND, BYVAL nButton AS LONG) AS TBBUTTON

Parameters

NameDescription
hToolbarHandle to the toolbar control.
nButtonZero-based index of the button for which to retrieve information.
ptbbPointer to the TBBUTTON structure that receives the button information.
tbbA TBBUTTON structure that receives the button information.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Retrieves information about the specified button in a toolbar.

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:445
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class