65.9K
CodeProject is changing. Read more.
Home

An example of a non progress bar

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.29/5 (11 votes)

Feb 21, 2005

viewsIcon

57754

downloadIcon

2763

This shows how to use a "working" progress bar like Windows XP does.

Sample Image - nonprogressbar.jpg

Introduction

Have you ever wanted to show a working indicator but you can't determinate when you have finished? Well, Windows XP uses a control similar to a Progress, but with an animation instead. Here is the code.

The GSControls.h file

To use this control in your application, you have to include this the file "GSControls.h" and before trying to create the window, call InitializeGSControls to register the class.

To create a control's window you can use the NonProgressBar_Create macro or explicitly call the function CreateWindow, using NONPROGRESS_CLASS for the window class.

The control is very easy to use and I tried to make it most similar to the Common Controls, in Win32, so I think that's all. Checkout the file.