Help Center

CToolbar.GetButtonTextLengthmethod

Retrieves the length of the display text of a button on a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

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

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button whose text length is to be retrieved.

Description

Retrieves the length of the display text of a button on a toolbar.

Reference

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