Subj : Re: win32 Listview control To : borland.public.cpp.borlandcpp From : Max Dupilka Date : Tue May 25 2004 03:17 pm Hello: I have just gone through what you are doing. Here is a very good site with lots of sample code. http://www.codeproject.com/ And you can download the MSDN library which has lots of code samples (your listview inquiry is among them called ROWLIST) http://msdn.microsoft.com/ Max Jogy wrote: > 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 .