Click here to Skip to main content
13,594,661 members
Click here to Skip to main content
Add your own
alternative version


25 bookmarked
Posted 3 Mar 2000

CClockCtrl v1.01

, 4 Mar 2000
Rate this:
Please Sign up or sign in to vote.
A Freeware MFC class to display an analog clock.
  • Download source files - 17 Kb
  • Sample Image - CClockCtrl.gif


    Welcome to CClockCtrl, 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 shown above.

    Contacting the Author


    v1.0 (3 February 2000)
    • Initial public release.

    V1.01 (16 February 2000)

    • Removed noticable flicker which sometimes occurred when the seconds hand moved.


    To use CClockCtrl in your project simply include ClockCtrl.cpp/.h from the test application in your application and #include "ClockCtrl.h" in 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 CClockCtrl should be pretty self explanatory by having a look at the CClockCtrl header file.

    You should also have a look at the CPJClockView::OnCreate() code in the sample application.

    Contacting the Author

    PJ Naughter
    16 February 2000 <p>


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    PJ Naughter
    United States United States
    No Biography provided

    You may also be interested in...

    Comments and Discussions

    GeneralLinking Error Pin
    Anonymous28-Jun-02 21:01
    memberAnonymous28-Jun-02 21:01 
    GeneralRe: Linking Error Pin
    Anonymous11-Jul-02 9:05
    sussAnonymous11-Jul-02 9:05 
    Generalthis is cool! Pin
    lucy14-Jun-02 9:42
    memberlucy14-Jun-02 9:42 
    GeneralLinking Error Pin
    Bin Liu22-Feb-02 7:59
    memberBin Liu22-Feb-02 7:59 
    GeneralRe: Linking Error Pin
    ldlance0118-Aug-02 7:16
    sussldlance0118-Aug-02 7:16 
    QuestionWhat's the name of the book? Pin
    Jose Luis Rojas30-Apr-00 18:16
    sussJose Luis Rojas30-Apr-00 18:16 
    AnswerRe: What's the name of the book? Pin
    PJ Naughter16-May-00 13:48
    sussPJ Naughter16-May-00 13:48 
    GeneralHour Hand Redrawing Pin
    Jeremy Davis8-Mar-00 3:01
    sussJeremy Davis8-Mar-00 3:01 
    GeneralRe: Hour Hand Redrawing Pin
    PJ Naughter16-May-00 13:48
    sussPJ Naughter16-May-00 13:48 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
    Web03 | 2.8.180621.3 | Last Updated 5 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2018
    Layout: fixed | fluid