My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Libseven  
An open-source library to simplify access to the Windows 7 Taskbar API by wrapping the ITaskbarList3 COM object to standard C.
Phase-Implementation, Featured, Libseven-Documentation
Updated Feb 17, 2010 by segin2005

Introduction

During the development of PsyMP3, I got my hands on a copy of the Windows 7 Beta, and I noticed that it featured a programmable progress bar in the application's taskbar button.

Basic Usage

  1. Call InitializeTaskbar() to initialize the library.
  2. Create a window with CreateWindow() or CreateWindowEx() or any other similar function
  3. Call AssociateHwnd() with the hWnd of the window in step 2
  4. Call SetProgressType() with one of the TASKBAR_* enum values, generally TASKBAR_PROGRESS is what you want since that is the one to set if you want to do a progress-on-taskbar indicator
  5. Call UpdateProgressBar() once you call SetProgressType() with TASKBAR_PROGRESS or TASKBAR_PAUSED to update the progress bar. It takes two values, the current value and the maximum value. You could choose to have the "maximum" value be the number of bytes total in a file, and the "current" be the number copied/downloaded/uploaded so far.

That's basically it.

Functions

To be written.

Definitions

To be written.


Sign in to add a comment
Powered by Google Project Hosting