Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CListCtrl

0 views
Skip to first unread message

Janette

unread,
Aug 22, 2005, 10:02:15 AM8/22/05
to
Hi,

Does anyone know how to change the colour of the hotItem colour?
(In my application it is a to dark blue colour that is to similar to black)

Best regards,

David Ching

unread,
Aug 22, 2005, 10:49:38 AM8/22/05
to
Handle NM_CUSTOMDRAW. You get a NMCUSTOMDRAW struct. The uItemState will
have the CDIS_HOT bit set. When this occurs, set the clrText field to be
dark blue.

You must also enable hot tracking on the listctrl. Setting the style with
one of the following does this:

LVS_EX_ONECLICKACTIVATE
LVS_EX_TRACKSELECT
LVS_EX_TWOCLICKACTIVATE

Check out also:

LVS_EX_UNDERLINEHOT
LVS_EX_UNDERLINECOLD

Best regards,
David
http://www.dcsoft.coom


"Janette" <Jan...@discussions.microsoft.com> wrote in message
news:EA39674A-DC4B-436D...@microsoft.com...

0 new messages