Click here to Skip to main content
6,295,667 members and growing! (12,615 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » WTL » General     Intermediate

An MS Outlook-style mini-calendar control using WTL

By Tony Ioanides

An MS Outlook-style mini-calendar control using WTL
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Visual Studio, ATL, WTL, Dev
Posted:21 May 2003
Updated:5 Jun 2003
Views:74,440
Bookmarked:35 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
18 votes for this article.
Popularity: 5.96 Rating: 4.75 out of 5

1

2
1 vote, 5.6%
3
4 votes, 22.2%
4
13 votes, 72.2%
5

Sample Image

Introduction

This article explains an MS Outlook-style mini-calendar control using WTL.

This began as a port of Matt Gullett's MS Outlook-style miniature calendar control written for MFC. There are still some features remaining to be added to it, but it serves as a reasonable starting point for anyone needing this functionality in a WTL application.

Features

  • Display months in n-columns by m-rows
  • Single-date or date-range selection (including SHIFT-extended selection)
  • Different fonts for: header, day initials, and day numbers
  • Auto-repeat on scroll arrows
  • Auto-scroll when previous/following months' days are selected
  • Callback (via WM_NOTIFY) for highlighting 'special days'
  • Month-year selection from header popup (with drop shadow under XP)

Optional display styles include:

  • 3D border
  • Today's date highlighted
  • Previous/following months' days displayed with the months' days
  • Week can start on any day of the week

Environment

This control was developed using VC++ .NET, WTL 7, and the Feb 2003 Platform SDK. It has been tested under Windows XP only.

History

  • 22 May 2003
    • Initial release
  • 6 June 2003
    • Added month/year selection popup
    • Added 'special date' highlighting
  • Soon...?
    • Buttons (optional) for selecting today's date, and for clearing the selection
    • Provide internationalisation support
    • Make it an ActiveX component

Acknowledgements

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

Tony Ioanides


Member

Occupation: Web Developer
Location: Australia Australia

Other popular WTL articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 14 of 14 (Total in Forum: 14) (Refresh)FirstPrevNext
GeneralUse this C++ in VB project PinmemberBlackboss2:43 9 May '06  
Generalcompile error Pinmemberhumbird1:06 27 Jun '05  
GeneralBug in SetRange(...) Pinmembervschoech0:48 5 Jul '04  
GeneralRe: Bug in SetRange(...) PinmemberTony Ioanides12:58 5 Jul '04  
GeneralRe: Bug in SetRange(...) Pinmembervschoech23:40 5 Jul '04  
GeneralForcing NotifyGetSpecialDays() Pinmembervschoech1:31 13 Jan '04  
GeneralRe: Forcing NotifyGetSpecialDays() PinmemberTony Ioanides22:54 14 Jan '04  
GeneralBug ResetRange()/NotifySelChanged()? Pinmembervschoech1:23 13 Jan '04  
GeneralRe: Bug ResetRange()/NotifySelChanged()? PinmemberTony Ioanides23:21 14 Jan '04  
GeneralRe: Bug ResetRange()/NotifySelChanged()? Pinmembervschoech0:07 15 Jan '04  
GeneralGood work. PinmemberMatt Gullett0:51 7 Jun '03  
GeneralWow this is just what I have been doing the last few weeks! PinmemberAngus Comber13:43 4 Jun '03  
General10 PinmemberHans J. Schroeder11:41 26 May '03  
GeneralNICE PinmemberSledgeHammer23:44 21 May '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 5 Jun 2003
Editor: Smitha Vijayan
Copyright 2003 by Tony Ioanides
Everything else Copyright © CodeProject, 1999-2009
Web15 | Advertise on the Code Project