Hi,

All samples on internet show setting the color of today plugin item like so:

SetTextColor(hDC,
SendMessage(m_hParentHwnd, TODAYM_GETCOLOR, (WPARAM)TODAYCOLOR_TEXT,
NULL));

However, what if the item is selected? how do I get the correct highlight
color?

It's not:
GetSysColor(COLOR_HIGHLIGHTTEXT)

I also need the color for the background of selected item.

Lisa

Re: Today plugin by Scott

Scott
Thu Aug 02 23:46:15 CDT 2007

"Lisa Pearlson" <no@spam.plz> wrote:
>
>Hi,
>
>All samples on internet show setting the color of today plugin item like so:
>
>SetTextColor(hDC,
> SendMessage(m_hParentHwnd, TODAYM_GETCOLOR, (WPARAM)TODAYCOLOR_TEXT,
>NULL));
>
>However, what if the item is selected? how do I get the correct highlight
>color?

Use TODAYCOLOR_HIGHLIGHTEDTEXT

--
Scott Seligman [MSFT]
This posting is provided AS IS with no warranties, and confers
no rights.