Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!emory!rsiatl!nanovx!msa3b!kevin From: kevin@msa3b.UUCP (Kevin P. Kleinfelter) Newsgroups: comp.windows.ms.programmer Subject: Subclassing Message-ID: <1580@msa3b.UUCP> Date: 22 Mar 91 14:52:49 GMT Organization: Dun and Bradstreet Software, Inc., Atlanta, GA Lines: 21 I'd like to create a "browse" window. This window would act exactly like a multiline edit control, with two exceptions: 1. The user could not modify or select any data 2. The program could add text to the window (with an edit control, it appears that the program can only SET the text, and I'd like to add a line, add another line, etc.) I THINK that this suggests I should subclass multiline edit. In my subclass function, I could pretty easily handle #1 above, by ignoring the messages that would modify or select the data. I don't see how to do #2; how can I add text? The only way I can think of is to get all the text from the edit control into a buffer, concatenate my text onto the end, and then set the text of the edit control. Is there a better way? -- Kevin Kleinfelter @ Dun and Bradstreet Software, Inc (404) 239-2347 ...gatech!nanovx!msa3b!kevin Warning: There seem to be multiple 'msa3b' nodes on Usenet, and it is nanoVX, not nanovAx.