C getCurrentThemename返回经典Windows主题的空值

c++ GetCurrentThemeName return empty value for Classic windows themes

本文关键字:空值 Windows getCurrentThemename 返回 经典      更新时间:2023-10-16

当我致电Windows 7基本样式的GetCurrentThemeName()时,我会得到" C: Windows Resources themes aero aero aero aero.msstyles",但是当我为Windows Classic style或Windows高对比度风格,我得到空刺。

是否期望?

我如何在我的C 应用程序中将Windows Classic样式与Windows高对比度样式区分开?

谢谢Zhenya

Windows Classic和高对比度 disable 主题,因此完全期望一个空字符串。

  • 使用getThemeAppproperties()检查是否启用了主题,请检查stap_allow_controls
  • 与Spi_gethighConcontrast一起使用SystemParameterSinfo检查是否启用了高对比度。