CDateTimeCtrl
-
I have a Date Time Picker in a toolbar, and I have a derived class of CDateTimeCtrl managing the UI object. What I want to know is how do I specify which days in the month are bold when the user clicks the dropdown button to select the date? Any help would be greatly appreciated. Thanks
-
I have a Date Time Picker in a toolbar, and I have a derived class of CDateTimeCtrl managing the UI object. What I want to know is how do I specify which days in the month are bold when the user clicks the dropdown button to select the date? Any help would be greatly appreciated. Thanks
You can call CMonthCalCtrl::SetDayState() (MESSAGE: MCM_SETDAYSTATE) to set them or better yet respond to the MCN_GETDAYSTATE message that the control sends when it needs new information. This usually occurs when the month changes. From my memory, there is an array of 32 bit values where each value represents a month and each bit represents a day. The on BITS cause the day to be bolded in the calendar if it has the MCS_DAYSTATE style set. There is all sorts of documentation on MSDN.
"No matter where you go, there your are." - Buckaroo Banzai
-pete