Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - How to limit dates
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to limit dates

 Post Reply Post Reply
Author
Message
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Topic: How to limit dates
    Posted: 21 August 2008 at 4:35am
I would like to limit the displayable dates f.ex. from 1. Jan. 1900 (minimum)

to a maximum at 2099. How can I do that?

Regards

Alex
Back to Top
prashant View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 February 2007
Location: India
Status: Offline
Points: 165
Post Options Post Options   Thanks (0) Thanks(0)   Quote prashant Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2008 at 5:39am
COleDateTime cStartDate(2008, 1, 1, 0, 0, 0);
COleDateTime cEndDate(2008, 12, 31, 0, 0, 0);
COleDateTime cCurrDate(0, 0, 0, 0, 0, 0);

m_wndDatePicker.SetRange(&cStartDate, &cEndDate);
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.