Share via


CMFCVisualManagerOffice2003::OnDrawStatusBarProgress

The framework calls this method when it draws the progress indicator on the CMFCStatusBar Class object

virtual void OnDrawStatusBarProgress(
   CDC* pDC,
   CMFCStatusBar* pStatusBar,
   CRect rectProgress,
   int nProgressTotal,
   int nProgressCurr,
   COLORREF clrBar,
   COLORREF clrProgressBarDest,
   COLORREF clrProgressText,
   BOOL bProgressText
);

Parameters

  • [in] pDC
    A pointer to the device context for the status bar

  • [in] pStatusBar
    The CMFCStatusBar Class object that contains the progress bar.

  • [in] rectProgress
    A rectangle that specifies the boundaries of the progress bar.

  • [in] nProgressTotal
    The total number for the progress bar.

  • [in] nProgressCurr
    The current progress for the progress bar.

  • [in] clrBar
    The initial color for the progress bar. The value is either the start of a color gradient or the complete color of the progress bar.

  • [in] clrProgressBarDest
     

  • [in] clrProgressText
     

  • [in] bProgressText
     

Remarks

Override this method in a derived visual manager to customize the appearance of the progress bar on a status bar.

Requirements

Header: afxvisualmanageroffice2003.h

See Also

Reference

CMFCVisualManagerOffice2003 Class

Hierarchy Chart