Help Center

CToolbar.ButtonStructSizemethod

Retrieves a count of the buttons currently in the toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

SUB ButtonStructSize (BYVAL hToolbar AS HWND, BYVAL cb AS LONG)

Parameters

NameDescription
hToolbarHandle to the toolbar control.
cbSize, in bytes, of the TBBUTTON structure.

Description

Specifies the size of the TBBUTTON structure.

Remarks

The system uses the size to determine which version of the common control dynamic-link library (DLL) is being used.

If an application uses the CreateWindowExW function to create the toolbar, the application must send this message to the toolbar before sending the TB_ADDBITMAP or TB_ADDBUTTONS message.

Reference

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