Compartilhar via


CMFCBaseVisualManager::DrawStatusBarProgress

Draws progress bar on status bar control (CMFCStatusBar Class) using the current Windows theme.

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

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] pStatusBar
    A pointer to status bar. This value is ignored.

  • [in] rectProgress
    The bounding rectangle of the progress bar in pDC coordinates.

  • [in] nProgressTotal
    The total progress value.

  • [in] nProgressCurr
    The current progress value.

  • [in] clrBar
    The start color. CMFCBaseVisualManager ignores this. Derived classes can use it for color gradients.

  • [in] clrProgressBarDest
    The end color. CMFCBaseVisualManager ignores this. Derived classes can use it for color gradients.

  • [in] clrProgressText
    Progress text color. CMFCBaseVisualManager ignores this. The text color is defined by afxGlobalData.clrBtnText.

  • [in] bProgressText
    Specifies whether to display progress text.

Return Value

TRUE if Theme API is enabled; otherwise FALSE.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCBaseVisualManager Class

Hierarchy Chart