Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!microsoft!kensy From: kensy@microsoft.UUCP (Ken SYKES) Newsgroups: comp.windows.ms Subject: Re: "edit" - class: How to underline? Message-ID: <58222@microsoft.UUCP> Date: 14 Oct 90 22:34:49 GMT References: <90.283.17:04:51@ira.uka.de> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 19 In article <90.283.17:04:51@ira.uka.de> tremmel@ira.uka.de (Wolfgang Tremmel) writes: > >Hi! >I am trying to program a simple Text - Editor in MS - Windows. >Now the Question: How can I tell a window with class "edit" to >allow underlining, bold, italics etc.? >Has anybody allready done it and how? > >Wolfgang Tremmel Alot of people wish this could be done easily. Unfortunately the EDIT class can only accept one font. Now, that font can have any style you like, but it still has to be the same font throughout the control. For multiple font capability, look in Petzold on text justification, etc. Look at WM_SETFONT to find out how to set the font. Ken Sykes Disclaimer: The above opinions are solely my own.