is there a way how to determine if the current mouse cursor is animated ?
I was looking for a way how to save the current cursor some time ago. I found the DrawIconEx function which perfectly suits to my purpose. Unfortunately I don't know how do I determine if the current cursor is animated. I was hoping that if I set the istepIfAniCur parameter to 1 in case of static cursor DrawIconEx returns False but it really ignores that parameter and returns True what disallows me to use it in the loop for getting the static cursor as well as all the frames from the animated one. In case of animated one works as expected so when you get out of range with istepIfAniCur it returns False.
So how do I find out that HICON (HCURSOR) is the animated cursor ? How the DrawIconEx determine that the cursor is animated ?
Thanks a lot
GetIconInfo
to retrieve the dimensions of the bitmap associated with the cursor (usingGetObject
) and getnumFrames = width_of_bitmap /
height_of_bitmap` assuming all cursors are square. – Desorb