The sample code given in this help topic needs to be updated (or at least annotated) as it has some flaws. Now I’m not sure if the DateEdit control is painted differently on Vista machines (I didn’t specifically request that it did), but when you open the drop down and click on the Month/Year label within the calendar, the calendar zooms to a higher level ... namely, a year at a glance.
The logic in the example didn’t take this into account and only worried about painting days of the month. When the control morfs into year-at-a-glance mode, instead of month names being on the control, colored 1’s appear because the code in DrawItem says to always write out the Day:
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.