Help Center

CComboEx.SetDarkModemethod

Sets the control dark mode.

WindowsmethodCCombo.incdocumented

Syntax

FUNCTION SetDarkMode (BYVAL hCombo AS HWND) AS HRESULT
FUNCTION SetDarkMode (BYVAL hComboEx AS HWND) AS HRESULT

Return value

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

Description

Sets the control dark mode.

Example

CCombo.SetDarkMode(hCombo) CCombo.SetDarkMode(hComboEx)

Reference

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