Re: Month Calendar control: make dates bold?
- Posted by Jonas Temple <jtemple at yhti.net> Feb 22, 2005
- 448 views
Dan, If you want to set a single date then use SetSelectedDate() in Win32Lib. If you want to set more than one day then you will need to use sendMessage with MCM_SETDAYSTATE. According to MSDN: lResult = SendMessage( // returns LRESULT in lResult (HWND) hWndControl, // handle to destination control (UINT) MCM_SETDAYSTATE, // message ID (WPARAM) wParam, // = (WPARAM) (int) iMonths; (LPARAM) lParam // = (LPARAM) (LPMONTHDAYSTATE) lpDayStateArray; ); The iMonths says how many elements are in the lpDayStateArray. The lpDayStateArray is basically a DWORD where bits 1-31 relate to a day in the month. If the bit is on, the day is in bold. Jonas Temple http://www.yhti.net/~jktemple