Subj : Re: win32 Listview control To : borland.public.cpp.borlandcpp From : mike Date : Tue May 25 2004 09:09 pm i've tried looking there (codeproject). can you provide any specific example? can you post your code that you got to work? mike "Max Dupilka" wrote in message news:40b3a938$1@newsgroups.borland.com... > 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 > .