Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Visual C++/MFC/WTL > CMonthCalCtrl и MCN_GETDAYSTATE


Автор: Chusik 4.4.2008, 10:05
Нужно в календаре (CMonthCalCtrl) поменять маску дней. Для этого вроде как посылается соообщение MCN_GETDAYSTATE. А как мне его послать вручную?  smile 

Автор: Andrey44 4.4.2008, 12:11
Цитата

This message is sent by a month calendar control to request information about how individual days should be displayed. It is sent only by month calendar controls that use the MCS_DAYSTATE style, and is sent in the form of a WM_NOTIFY message. 

MCN_GETDAYSTATE lpNMDayState = (LPNMDAYSTATE) lParam;
Parameters
lpNMDayState 
Long pointer to an NMDAYSTATE structure. The structure contains information about the time frame for which the control needs information, and receives the address of an array that provides such data. 
Return Values
None.

Remarks
Handling this message allows your application to customize its display by specifying that certain days be displayed in bold. For more information about processing this message, see Processing the MCN_GETDAYSTATE Notification Message. 



Автор: Chusik 4.4.2008, 14:04
А можно поточнее расписать как там заполнять структуры, а то что-то никак не получается... И надо ли после этого перерисовывать окно, чтобы изменения отобразились? =)

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)