Michael Plautz
Michael Plautz

Reputation: 3778

Windows: is there a built in loading animation I can reference as a Visual C++ resource?

I am building an Visual C++ MFC project in Visual Studio 2015 that is intended to support Windows 7 and Windows 10. I have learned about DLL files that contain various icons, and also how to reference various cursors, but what I am wondering is if there is a stock "windows loading" animation resource embedded in Windows as a resource that I can reference, either as a file resource or using a win32 API call. This is a difficult thing to find the answer to online because, for example, a google search yields a bunch of results about icons, loading images, and the loading cursor, none of which are useful for this problem.

To illustrate, here are the specific loading animations for Windows 7:

Windows 7 Loading Animation

(this is not a cursor, this is an image anchored to the background)

and for Windows 10:

Windows 10 Loading Animation

What I am hoping is that there is some sort of frame-by-frame alpha layered image clips — I intend to handle the rendering and animation of myself.

Upvotes: 2

Views: 2296

Answers (1)

user7860670
user7860670

Reputation: 37579

The Windows7-style progress circle bitmaps can be found inside of

Windows\System32\imageres.dll

with 5000 - 5013 resource ids.

The Windows10-style progress circle is openly available as ProgressRing XAML control.

<ProgressRing IsActive="True" Height="100" Width="100"/>

Upvotes: 1

Related Questions