Detecting Windows animation settings

前端 未结 1 1227
难免孤独
难免孤独 2020-12-21 23:13

I\'m working on a program that runs basic smoke tests and acceptance tests on Windows applications under development. Part of what it does is to snapshot the app\'s top-lev

相关标签:
1条回答
  • 2020-12-21 23:53

    The answer appears to be "no."

    David Heffernan successfully identified this is the Desktop Window Manager transitions setting. Unfortunately, there doesn't seem to be an API to read this setting. You can use DwmSetWindowAttribute with DWMWA_TRANSITIONS_FORCEDISABLED to change it, but it's a global setting so that's not advisable. Likewise, the duration of the animation is not exposed.

    If someone finds information to the contrary (or if an API is added in a newer version of Windows), please add an answer and I will accept it.

    0 讨论(0)
提交回复
热议问题