
Using fnFlushMenuThemes = void (WINAPI *)() // ordinal 136 Using fnAllowDarkModeForApp = bool (WINAPI *)(bool allow) // ordinal 135, removed since 18334 Using fnAllowDarkModeForWindow = bool (WINAPI *)(HWND hWnd, bool allow) // ordinal 133

Using fnShouldAppsUseDarkMode = bool (WINAPI *)() // ordinal 132 Here is the full list ordinal-only imports from that project: using fnRtlGetNtVersionNumbers = void (WINAPI *)(LPDWORD major, LPDWORD minor, LPDWORD build) The most fundamental of the new Windows APIs are SetPreferredAppMode ( to be called prior to any window creation, and AllowDarkModeForWindow ( to be called on any Window that intends to use native Windows 10 dark mode support. Until then, we are stuck with undocumented ordinal-only imports, then custom draw and WM_CTLCOLOR* messages to dictate how controls that don't yet have native Dark Mode support are painted. It seems that Dark Mode is still an area of development in Windows 10, but I believe that Microsoft will eventually properly document and expose it to desktop apps. This guy has it all laid out in some nice reusable code (MIT license). This visibly changes TreeView style ( + expand button becomes V), but the window remains white. I tried SetWindowTheme(hwnd, L"Explorer", NULL) for TreeView and ListView. One other example: Open File dialogs become dark in all Desktop applications, while the application itself remains in old light theme. I noticed that Windows Explorer Control Panel is partially light and partially dark, so it should be a per-window setting, rather then per-process setting. How is it implemented under the hood? Is there some way (manifest, WINAPI, etc) to subscribe for new dark theme? Still, Desktop applications other then Windows Explorer are not affected at the moment. This means that Windows now have internal support for it.

However, with this Windows 10 release, it also affects Windows Explorer, which is a Desktop application. While this setting exists for a while now, it only affected UWP applications.


Starting with October 2018 Update (version 1809) Win10 has support for Dark theme in Windows Explorer.
