Help Center

CToolbar.IsButtonPressedmethod

Determines whether the specified button in a toolbar is pressed.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION IsButtonPressed (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS LONG

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button.

Return value

Returns nonzero if the button is pressed, or zero otherwise.

Description

Determines whether the specified button in a toolbar is pressed.

Reference

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