Re: RichEdit and Word (was: How do they do it)
- Posted by "Christian Cuvier" <Christian.CUVIER at agriculture.gouv.fr> Nov 22, 2004
- 534 views
> Subject: Re: How Do They Do It? posted by: CoJaBo <cojabo at suscom.net> > cklester wrote: > >>> >>> Hopefully somebody here knows... >>> >>> How does a word processing application, such as Microsoft Word or >>> WordPerfect >>> or OpenOffice, display the text? Is that in a rich edit control? Or is it a >>> custom control? Or something else? I'm guessing custom control, but I don't > > I'm fairly certain it is a custom control, > but you should be able to use it if you can > find the DLL it is in. > > >>> know for sure. >>> >>> Anybody? Thanks! >>> >>> -=ck The reference for RichEdit controls at MSDN says some formatting attributes are not rendered by the control, but there are in the CHARFORMAT2 structure so as to comply with the TOM (text object model iirc). Ergo MSWord, which is the reference for the TOM, uses another, proprietary control. If you can scan the few dlls for method names and can figure the argtypes out, you are done. CChris