Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms Subject: Re: Another question (was Re: A basic edit control question) Message-ID: <57431@microsoft.UUCP> Date: 14 Sep 90 00:06:42 GMT References: <1990Sep11.182127.29856@rodan.acs.syr.edu> <7275@umd5.umd.edu> <1990Sep12.185146.21307@rodan.acs.syr.edu> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 17 In article <1990Sep12.185146.21307@rodan.acs.syr.edu> jfbruno@rodan.acs.syr.edu (John Bruno) writes: >Responding to my question about intercepting messages to an edit control... >Well, now I have another question. I'd like to make some text lines in the edit >control a different color. I guess I'd have to intercept several messages >to get this to work, like WM_PASTE, WM_PAINT, WM_CHAR, probably some others >too, but since Win3.0 does the actual drawing of the characters on the screen, >how can I change their color? Could I do something like was suggested above, >only in some cases not call the windows edit control proc? Is this a kosher >thing to do? > Actually it would probably be more kosher to make the listbox an owner-draw listbox. This will allow you to fiddle it with the output characteristics to your hearts content. The docs explain how owner-draw controls work. Ken Sykes Disclaimer: The above opinions are solely my own.