Virtual Developer Workshop: Containerized Development with Docker

tray calender image

Environment: Win95/98, NT4, VC5.0, UNICODE

Tray Calender is a freeware utility that I wrote after being amazed that
(a) Microsoft did not bother to offer us a calender in the tray, and
(b) People were charging good money for tiny little tray apps.

The idea is simple: Put the day of the month next to the clock in the system tray. It tells you todays date, and will update the number displayed when the date changes. 20 seconds after it starts it will reshuffle itself so that it is the right-most icon in the tray. This is useful if you put it in the "Startup" folder (so it starts automatically) becuase during startup other icons such as virus checkers and such may get between the calender and the clock.

The only options are that you can disable date checking, disable auto-shuffle, and you can change the auto-shuffle time. Right click on the date icon for the options dialog.

The class is based on my CSystemTray class, and serves as a fairly quick and dirty example of how to use it.

Download project - 59 KB

Download executable - 16 KB


  • outlook calender and startup

    Posted by Legacy on 11/13/2003 08:00am

    Originally posted by: Riaz

    Is there a way to have the computer start with the outlook calendar program so that you're notified of appointments etc. without having the program open per se.?


  • Thanks

    Posted by Legacy on 08/28/2002 07:00am

    Originally posted by: Tony Rees

    I always need the date for docs ..This is awesome ..Thanks

  • Very Nice!!!

    Posted by Legacy on 09/06/2001 07:00am

    Originally posted by: Godffrey Quijano

    Very nice!!!
    I'm looking for a way to use on MFC Tray
    App. Thanks a lot!!!

  • Good stuff

    Posted by Legacy on 07/19/2001 07:00am

    Originally posted by: Koppers

    Real good Infos. Learned a lot also in the CHyperlink Klasse. Thanks.

  • Text in tray

    Posted by Legacy on 07/16/2001 07:00am

    Originally posted by: Jani V�is�nen

    How to add text in the system tray ?

  • CHyperLink Memory Leak

    Posted by Legacy on 08/07/2000 07:00am

    Originally posted by: Josee Oliviero

    The CHyperLink class used here and other with other applications written by Chris M. requires an additional 2-lines of code in the destructor to get rid of a memory leak.

    other code

    //if allocated, fee memory

  • Perfect for me

    Posted by Legacy on 02/21/2000 08:00am

    Originally posted by: Kim Hancock

    Ive been searching for some example code that handles the systray properly, and this has helped me no end. One sample project is worth a thousand pictures..

  • Too Big?? ?????

    Posted by Legacy on 12/06/1999 08:00am

    Originally posted by: Brian H

    I have experimented and I would love to see an MFC Tray
    App, that the size is "taken into consideration". Just
    using MFC is bloating it and then having resources raises
    the bar more. Its MFC. I dont know a lot of people who
    still really worry about the 16mb people, and this really
    shouldnt hinder them that much more than they Already are.
    Anyway, I know this is an old post but Thanks for
    TSR History Lesson. Neat. Now they're called Utilities.
    Fundamentally there kinda the same, Sorta?!! But who
    I noticed on an app I wrote(simple animation)
    using CSystemTray that if I let it run for a longer
    period of time, the size that Task Manager reports for
    Memory Usage decreases. I dont know if this corresponds
    to what Norton is dishing out, but my app will start at
    1500KB and Ive seen it as low as 300KB. I believe TrayCal
    does this to some extent too.....

    Anyway, this app is about 170KB statically linked
    and comes up at about 1500Kb. I totally rewrote
    CSystemTray so It no longer had MFC in it, and then
    wrote the same app in Win32 and the app size ends up
    at 32KB and its memory Usage comes up at 1200KB.
    Significant, beats me, the only computers it's been
    run on (about 30 different ones of different sizes)
    all handled the original CSystemTray one just fine.

    Just thought I'd share my findings, and thank Chris
    for a cool class to work with!!!!
    Not to difficult to tear out the MFC I might add.
    Then it works swell in ATL.
    Thanks Again,

  • download problem

    Posted by Legacy on 11/19/1999 08:00am

    Originally posted by: David Lallave

    I cannot download the project sample.

  • Not bad, but i havn't mfc42ud.lib

    Posted by Legacy on 08/31/1999 07:00am

    Originally posted by: DRVoid

    Where i can download this lib?

  • Loading, Please Wait ...

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date