Help Center

CToolbar.SetMetricsmethod

Sets the metrics of a toolbar control.

WindowsmethodCToolbar.incdocumented

Syntax

SUB SetMetrics (BYVAL hToolbar AS HWND, BYVAL ptbMetrics AS TBMETRICS PTR)
SUB SetMetrics (BYVAL hToolbar AS HWND, BYREF tbMet AS TBMETRICS)

Parameters

NameDescription
hToolbarHandle to the toolbar control.
ptbMetricsPointer to a TBMETRICS structure that contains the toolbar metrics to set.
tbMetA TBMETRICS structure that contains the toolbar metrics to set.

Description

Sets the metrics of a toolbar control.

Remarks

To use this message, you must provide a manifest specifying Comclt32.dll version 6.0.

Reference

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