gpt4 book ai didi

windows - 如何在 Win32 应用程序中检测 Windows 10 亮/暗模式?

转载 作者:可可西里 更新时间:2023-11-01 12:18:59 29 4
gpt4 key购买 nike

一些上下文:Sciter (纯 win32 应用程序)已经能够呈现类似 UWP 的 UI:

在深色模式下: in dark mode

在灯光模式下: in light mode

Windows 10.1803 在设置小程序中引入深色/浅色开关 as seen here for example .

问题:如何确定 Win32 应用程序中该“应用程序模式”的当前类型?

最佳答案

好吧,这个选项似乎没有直接暴露给常规 Win32 应用程序,但是可以通过 HKEY_CURRENT_USER\Software\Microsoft\Windows\中的 AppsUseLightTheme 键设置/检索它CurrentVersion\Themes\Personalize 注册表路径。

关于windows - 如何在 Win32 应用程序中检测 Windows 10 亮/暗模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51334674/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com