Tray Calender

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



Comments

  • outlook calender and startup

    Posted by Legacy on 11/13/2003 12: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.?
    
    

    RJK

    Reply
  • Thanks

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

    Originally posted by: Tony Rees

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

    Reply
  • Very Nice!!!

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

    Originally posted by: Godffrey Quijano

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

    Reply
  • Good stuff

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

    Originally posted by: Koppers

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

    Reply
  • Text in tray

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

    Originally posted by: Jani V�is�nen

    How to add text in the system tray ?

    Reply
  • CHyperLink Memory Leak

    Posted by Legacy on 08/07/2000 12: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.
    
    

    CHyperLink::~CHyperLink()
    {
    ............
    other code
    ............

    //if allocated, fee memory
    if(m_hLinkCursor)
    DestroyCursor(m_hLinkCursor);
    }

    Reply
  • Perfect for me

    Posted by Legacy on 02/21/2000 12: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..
    THANKS!

    Reply
  • Too Big?? ?????

    Posted by Legacy on 12/06/1999 12: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
    cares!!
    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,
    Brian

    Reply
  • download problem

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

    Originally posted by: David Lallave

    I cannot download the project sample.

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

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

    Originally posted by: DRVoid

    Where i can download this lib?

    Reply
  • Loading, Please Wait ...

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

Top White Papers and Webcasts

  • Protecting business operations means shifting the priorities around availability from disaster recovery to business continuity. Enterprises are shifting their focus from recovery from a disaster to preventing the disaster in the first place. With this change in mindset, disaster recovery is no longer the first line of defense; the organizations with a smarter business continuity practice are less impacted when disasters strike. This SmartSelect will provide insight to help guide your enterprise toward better …

  • Hybrid cloud platforms need to think in terms of sweet spots when it comes to application platform interface (API) integration. Cloud Velocity has taken a unique approach to tight integration with the API sweet spot; enough to support the agility of physical and virtual apps, including multi-tier environments and databases, while reducing capital and operating costs. Read this case study to learn how a global-level Fortune 1000 company was able to deploy an entire 6+ TB Oracle eCommerce stack in Amazon Web …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds