|
Range and Current Position
A progress bar has a range and a current position. The range represents the
entire duration of the operation, and the current position represents the
progress that the application has made toward completing the operation. The window
procedure uses the range and the current position to determine the percentage of
the progress bar to fill with the highlight color and to determine the text, if
any, to display within the progress bar. Because the range and current position
values are expressed as unsigned integers, the highest possible range or
current position value is 65,535.
The minimum value in the range can be from 0 to 65,535. Likewise, the maximum
value can be from 0 to 65,535. If you do not set the range values, the system
sets the minimum value to 0 and the maximum value to 100. You can adjust the
range to convenient integers by using the PBM_SETRANGE message.
A progress bar provides several messages that you can use to set the current
position. The PBM_SETPOS message sets the position to a given value. The PBM_DELTAPOS message advances the position by adding a specified value to the current
position.
The PBM_SETSTEP message allows you to specify a step increment for a progress bar.
Subsequently, whenever you send the PBM_STEPIT message to the progress bar, the current position advances by the specified
increment. By default, the step increment is set to 10.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|