Help Center

CToolbar.ButtonCountmethod

Retrieves a count of the buttons currently in the toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION ButtonCount (BYVAL hToolbar AS HWND) AS DWORD

Parameters

NameDescription
hToolbarHandle to the toolbar control.

Return value

Returns the count of the buttons.

Description

Retrieves a count of the buttons currently in the toolbar.

Reference

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