简体   繁体   English

IsAppThemed和IsThemeActive有什么区别?

[英]What is the difference between IsAppThemed and IsThemeActive?

I can't really understand in which cases I'd want to use IsAppThemed and when I'd want to use IsThemeActive . 我无法真正了解在哪些情况下我想使用IsAppThemed以及何时我想使用IsThemeActive

It seems that on Windows 7, both functions return TRUE with Aero or Windows 7 Basic, and both functions return FALSE with Windows Classic. 似乎在Windows 7上,两个函数都在Aero或Windows 7 Basic中返回TRUE,并且这两个函数在Windows Classic中都返回FALSE。

From what I understand from the documentation so far, IsAppThemed will always return TRUE beginning with Windows 8. That's about all I can determine - other than that I can't see how I'd prefer one over the other in any case... 从我到目前为止的文档中了解到,IsAppThemed将始终从Windows 8开始返回TRUE。这是我能够确定的所有内容 - 除此之外我无法看到在任何情况下我更喜欢哪一个...

IsThemeActive() tells you whether visual styles are enabled in the operating system. IsThemeActive()告诉您是否在操作系统中启用了视觉样式。 Prior to Win8 you could force that off in Control Panel by selecting the Classic style. 在Win8之前,您可以通过选择Classic样式在控制面板中强制关闭它。 Yes, poor name choice. 是的,名字选择不佳。

IsAppThemed() tells you whether the app has enabled visual styles, either by using a manifest or by using ActivateActCtx(), and it wasn't disabled in the operating system. IsAppThemed()通过使用清单或使用ActivateActCtx()告诉您应用程序是否启用了可视样式,并且在操作系统中未禁用它。 If IsThemeActive() returns FALSE then IsAppThemed() will always return FALSE. 如果IsThemeActive()返回FALSE,则IsAppThemed()将始终返回FALSE。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM