BCGControlBar Pro for MFC
CBCGPCircularProgressIndicatorRenderer

Detailed Description

The CBCGPCircularProgressIndicatorRenderer class implements a helper that allows to draw the circular progress indicator inside other controls such as buttons or tabs.

Derive your class from base control class and CBCGPCircularProgressIndicatorRenderer (multiple inheritance) and call DoDrawProgress() within your control drawing method (such as OnPaint).

Example:

Copy
class CButtonWithProgress : public CBCGPButton,
{
public:
CButtonWithProgress() : CBCGPCircularProgressIndicatorRenderer(this) {}
void SetProgressPos(double pos)
{
RedrawWindow();
}
protected:
virtual void OnDrawImage(CDC* pDC, const CRect& rectImage, UINT uiState)
{
DoDrawProgress(pDC, rectImage);
}
};
+ Inheritance diagram for CBCGPCircularProgressIndicatorRenderer:

Additional Inherited Members

- Public Member Functions inherited from CBCGPCircularProgressIndicatorRendererBase
 DoDrawProgressCall this method to draw a circular progress indicator.
 
- Public Member Functions inherited from CBCGPGraphicsManagerHelper
 SetGraphicsManagerTypeSpecifies a graphics manager type.
 
- Protected Member Functions inherited from CBCGPGraphicsManagerHelper
 DoGraphicsManagerDrawCall this method to initiate a window content drawing using the graphics manager.
 
 DoGraphicsManagerDrawCall this method to initiate a window content drawing using the graphics manager.
 
- Protected Attributes inherited from CBCGPCircularProgressIndicatorRendererBase
 m_CircularProgressThe circular progress indicator implementation.