Introduction
This
article
shows the use of a
pie progress control. The code is
encapsulated in a
E-XD++ MFC class. The class
itself is derived from a
CFODrawShape
class. The code demonstrates the how perform
flicker free
drawing. The
control works in a similar way
to the standard Windows
progress control.
The main
core of the code is in the
drawing
routine (OnDraw3d
and OnDrawFlat
).
The public
interface to access the class is shown
here...
void SetStep(int nStep);
void GetRange(int& nLower, int& nUpper);
void SetRange(int nLower, int nUpper);
int StepIt();
int OffsetPos(int nOffset);
int GetPos();
int SetPos(int nPos);
The class
is created with the E-XD++ default
Create()
member. The control can be any shape or
size. The example code also shows how to add
a client edge to the window.