Why doesn't my title bar switch to Dark Mode?

JWG 146 Reputation points
2023-03-14T22:22:11.5366667+00:00

I have followed the example here, but although I have the code, my window remains unchanged.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,429 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
947 questions
{count} votes

Accepted answer
  1. Castorix31 81,831 Reputation points
    2023-03-15T06:26:14.9966667+00:00

    DWMWA_USE_IMMERSIVE_DARK_MODE is for Windows 11

    In MSDN :

    This value is supported starting with Windows 11 Build 22000.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful