October 17, 2018
Hot Topics:

Create a Progress Bar using the API

  • November 20, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

Fed up with distributing the 509KB ComCtl32.ocx with your program just for a single control? In this article, I will demonstrate how to create a progress bar using the CreateWindowEx API call. Topics such as horizontal and vertical bars, forecolour and backcolour and positioning the progress bar will be covered.

As with the status bar, a lot of the information in this article was extracted from the ComCtrl.h header file. This file is written in C++ syntax and therefore you will need to know the basics of translating C++.

Just a quick note to let you know that all the project files (a form, bas module, project and compiled exe) amount to a mere 4% of the ComCtl32.ocx!

Page 1 of 3

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.


Thanks for your registration, follow us on our social networks to keep up-to-date