Help Center

CToolbar.SetDarkModemethod

Sets the toolbar dark mode.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetDarkMode (BYVAL hToolbar AS HWND) AS HRESULT

Parameters

NameDescription
hToolbarHandle to the toolbar control.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Description

Sets the toolbar dark mode.

Reference

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