The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: xdnlq21 on July 04, 2006, 09:38:23 AM

Title: Calendar Control
Post by: xdnlq21 on July 04, 2006, 09:38:23 AM
Can anyone explain how the calendar control in easy code works?
Title: Re: Calendar Control
Post by: Ramon Sala on July 04, 2006, 10:36:16 AM
Hi xdnlq21,

You can work with the Calendar control by sending it messages. Messages available in MSDN library are the following:

MCM_GETCOLOR, MCM_GETCURSEL, MCM_GETFIRSTDAYOFWEEK, MCM_GETMAXSELCOUNT, MCM_GETMAXTODAYWIDTH, MCM_GETMINREQRECT, MCM_GETMONTHDELTA, MCM_GETMONTHRANGE, MCM_GETRANGE, MCM_GETSELRANGE, MCM_GETTODAY, MCM_GETUNICODEFORMAT, MCM_HITTEST, MCM_SETCOLOR, MCM_SETCURSEL, MCM_SETDAYSTATE, MCM_SETFIRSTDAYOFWEEK, MCM_SETMAXSELCOUNT, MCM_SETMONTHDELTA, MCM_SETRANGE, MCM_SETSELRANGE, MCM_SETTODAY and MCM_SETUNICODEFORMAT.

Also there are some notification messages sent by the control to its parent (MCN_SELCHANGE, MCN_SELCHANGE, etc.) through the WM_NOTIFY message. For more information, see the MSDN help.

Regards,

Ramon