Help Center

CToolbar.GetMaxSizemethod

Retrieves the total size of all of the visible buttons and separators in the toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION GetMaxSize (BYVAL hToolbar AS HWND, BYVAL psize AS SIZE PTR) AS BOOLEAN
FUNCTION GetMaxSize (BYVAL hToolbar AS HWND, BYREF sz AS SIZE) AS BOOLEAN
FUNCTION GetMaxSize (BYVAL hToolbar AS HWND) AS SIZE

Parameters

NameDescription
hToolbarHandle to the toolbar control.
psizePointer to a SIZE structure that receives the size of the items.
szA SIZE structure that receives the size of the items.

Return value

Returns nonzero if successful, or zero otherwise.

Description

Retrieves the total size of all of the visible buttons and separators in the toolbar.

Reference

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