Click here to Skip to main content
Licence 
First Posted 3 Mar 2000
Views 83,009
Bookmarked 24 times

CClockCtrl v1.01

By | 4 Mar 2000 | Article
A Freeware MFC class to display an analog clock.
  • Download source files - 17 Kb
  • Sample Image - CClockCtrl.gif

    Introduction

    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.


    History
    Usage
    Contacting the Author


    History

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

    V1.01 (16 February 2000)

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


    Usage

    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
    Email: pjn@indigo..ie
    Web: http://www.naughter.com
    16 February 2000

    License

    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

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralLinking Error PinmemberAnonymous21:01 28 Jun '02  
    GeneralRe: Linking Error PinsussAnonymous9:05 11 Jul '02  
    Generalthis is cool! Pinmemberlucy9:42 14 Jun '02  
    GeneralLinking Error PinmemberBin Liu7:59 22 Feb '02  
    GeneralRe: Linking Error Pinsussldlance017:16 18 Aug '02  
    QuestionWhat's the name of the book? PinsussJose Luis Rojas18:16 30 Apr '00  
    Hi, I've been searching for the book you listed in this example ("MFC Programming with Visual C++ 6") but all I seem to find is a book titled "MFC Programming with Visual C++ 6 Unleashed". Is it the same book? Can anybody tell me where to get it?
     
    I appreciate your response.
    AnswerRe: What's the name of the book? PinsussPJ Naughter13:48 16 May '00  
    GeneralHour Hand Redrawing PinsussJeremy Davis3:01 8 Mar '00  
    GeneralRe: Hour Hand Redrawing PinsussPJ Naughter13:48 16 May '00  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
    Web01 | 2.5.120529.1 | Last Updated 5 Mar 2000
    Article Copyright 2000 by PJ Naughter
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid