void CBCGPStatusBar::EnablePaneProgressBar | ( | int | nIndex, |
long | nTotal = 100 , |
||
BOOL | bDisplayText = FALSE , |
||
COLORREF | clrBar = -1 , |
||
COLORREF | clrBarDest = -1 , |
||
COLORREF | clrProgressText = -1 |
||
) |
Enables indicator to display the progress bar for a given index.
Call this member function to enable the pane whose index is specified by nIndex to display the progress bar.
If you want to disable the progress bar call EnablePaneProgressBar with nTotal set to -1. By default nTotal is set to 100, so you don't need any additional calculations to display progress in percents.
If you pass different values for clrBar and clrBarDest the progress bar's background will be filled using gradient color.
To set the current progress you should call the SetPaneProgress() member function.
nIndex | Index of the pane whose progress bar is to be enabled. |
nTotal | Specifies the maximum value for the progress bar. |
bDisplayText | Specifies whether the progress bar should display the current progress value. |
clrBar | Specifies the color of the progress bar's background. |
clrBarDest | Specifies the color of the progress bar background. Use different value than clrBar to display gradient fill. |
clrProgressText | Specifies the color of the progress bar text. |