Help Center

CToolbar.SetWindowThememethod

Sets the visual style of a toolbar control.

WindowsmethodCToolbar.incdocumented

Syntax

SUB SetWindowTheme (BYVAL hToolbar AS HWND, BYVAL pwszTheme AS WSTRING PTR)

Parameters

NameDescription
hToolbarHandle to the toolbar control.
pwszThemePointer to a Unicode string that contains the toolbar visual style to set.

Description

Sets the visual style of a toolbar control.

Remarks

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

Sending this message is equivalent to calling SetWindowTheme on the toolbar and its tooltip control, if any.

Reference

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