Subj : Re: win32 Listview control To : borland.public.cpp.borlandcpp From : Jogy Date : Tue May 25 2004 11:45 am mike wrote: > Hi, > > i'm trying to change the color of only 1 row in my listview. when i do it, > the entire listview changes the color. this happens for both the text and > the background. is this possible to do WITHOUT making the listview > ownerdrawn? if not, what are the steps to accomplishing this with the > listview being ownerdrawn? > > also, where could i find some good documentation about ownerdrawn controls? > (ie, what messages i need to intercept, etc.) > > Aloha, > mike > > Hello, The best way is to use the NM_CUSTOMDRAW notification: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/listview/notifications/nm_customdraw_listview.asp Check this example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/custdraw/custdraw.asp#CustomDraw_ChangingFontsAndColors Jogy .