Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Srinivasan Natarajan
|
Nov 11, 2005 - 5:25 AM
|
Hi, Is it possible to color the date cells in CExtDurationWnd (based on some condition) ? regards sundar
|
|
Technical Support
|
Nov 11, 2005 - 11:44 AM
|
Yes, it is possible. Just override the CExtDurationWnd::OnQueryItemTextColor() virtual method which returns a COLORREF value used for painting text of the specified field. In case of the background, please override the CExtDurationWnd::OnQueryItemBkColor() instead. These methods have the ITEM_INFO parameter which allows you to determine what field the color is requested for (the m_eItemType enum).
|
|