以编程方式更改系统视觉效果

Programmatically change system Visual Effect

我需要一些提示,以了解我需要在用 C++(使用 MFC)开发的项目中进行的一些更改;特别是,我想更改 Windows 10:

的一些视觉效果设置

在此先感谢您的帮助!

您可以通过设置 SPI_SETCLIENTAREAANIMATION 来禁用 "animate controls and elements inside windows"。

SPI_SETCLIENTAREAANIMATION: Turns client area animations on or off. The pvParam parameter is a BOOL variable. Set pvParam to TRUE to enable animations and other transient effects in the client area, or FALSE to disable them. Display features such as flashing, blinking, flickering, and moving content can cause seizures in users with photo-sensitive epilepsy. This flag enables you to enable or disable all such animations.

Windows Server 2003 and Windows XP/2000: This parameter is not supported.

然后你用SystemParametersInfo让它生效

代码:

SystemParametersInfo(SPI_SETCLIENTAREAANIMATION, 0, (PVOID)FALSE, SPIF_UPDATEINIFILE); 

注:

此功能适用于允许用户自定义环境的应用程序。

因此您不能仅为您的应用程序更改此选项。