Download source files - 17 Kb
, an MFC widget which renders an analog clock.
The class is based almost in whole on the class of the same name from the book
"MFC Programming with Visual C++ 6.0". The class is derived from CStatic and a number of public
methods allow customisation of its look. A demo app is provided which demos the control as
v1.0 (3 February 2000)
V1.01 (16 February 2000)
- Removed noticable flicker which sometimes occurred when the seconds hand moved.
in your project simply include ClockCtrl.cpp
from the test application in your application and
whichever files you want to use the class in. You can then use the class just like you
would use an ordinary static control anywhere. The public methods
pretty self explanatory by having a look at the
You should also have a look at the
CPJClockView::OnCreate() code in
the sample application.
16 February 2000