Detecting Windows Animation Settings

I am working on a program that conducts basic smoke tests and acceptance tests for developing Windows applications. Part of what he does is snapshots of the top-level window (s) of the application when it (they) first appears. He does this by starting the process, waiting for input in standby mode, listing top-level windows, and then getting the DC window and blitting from it.

It turns out that the first appearance of the top-level window is animated by default - it disappears and expands to its actual size - at least in Windows 7. Screenshots taken during the animation either do not skip the window frame or the frame is reduced and partially transparent.

Screenshot of a Hello-World app as the top-level window appearance animation is in progress

, (, Sleep(250)) , , , . Windows ( ), . , . ( , .)

, " " Ease of Access Center, , , . , ( ), SystemParametersInfo. , , , . , .

SPI, . SPI_GETANIMATION, , . .

API , ? , , , ? , , , ?

+1
1

"".

, Desktop Window Manager. , API , , . DwmSetWindowAttribute DWMWA_TRANSITIONS_FORCEDISABLED, , , . , .

- ( API Windows), , .

0

All Articles