Help Center

CToolbar.GetButtonSizemethod

Retrieves the current width and height of toolbar buttons, in pixels.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION GetButtonSize (BYVAL hToolbar AS HWND) AS DWORD

Parameters

NameDescription
hToolbarHandle to the toolbar control.

Return value

Returns a DWORD value that contains the width and height values in the low word and high word, respectively.

Description

Retrieves the current width and height of toolbar buttons, in pixels.

Reference

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