How does Windows perform synchronized GUI animations?

When I use Spy ++, I noticed that the mouse entering the button launches the WM_TIMER series.

How does windows do this? Does he ask to notify about it or to call the function pointer after X milliseconds or does the widget register its own proc timer?

The reason I want to know this is because I am creating a gui api game in C ++ and want to enable this mechanism.

thank

+3
source share
3 answers

Animation options in the MS Windows GUI are very limited. You can't say anything if you knew a real OS with animation support, such as Mac OS X.

Windows GUI , . , , .

, , MS Windows - . , , .

: http://www.rawmaterialsoftware.com/juce.php


(: rawmaterialsoftware.com)

0

, SetTimer WM_TIMER. SetTimer WM_TIMER .

+6

Game API , , .

, , WM_TIMER SetTimer, , - Button, , API TrackMouseEvent WM_MOUSELEAVE, .

, Microsoft Windows.

0

Source: https://habr.com/ru/post/1786556/


All Articles