Re: Month Calendar control: make dates bold?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu