3 ms·
The parser and renderer is a pre-existing RichTextEdit widget. Add menus and save, open, and print functionality and you are over 90% of the way to a WordPad c
by lockhouse 3y ago
The parser and renderer is a pre-existing RichTextEdit widget. Add menus and save, open, and print functionality and you are over 90% of the way to a WordPad clone.
- profile53 3y agoIt’s a pre built widget because Microsoft wrote it for WordPad though.
- lockhouse 3y agoIt’s actually likely to be the opposite. WordPad could be a test application for the RichTextEdit widget.
- canucker2016 3y agoNo. The RichText control was written for the Win95/Exchange email client. Since there was now a RichText control that supported RTF in Windows, the Windows group could write a thin wrapper around the RichText control and replace Microsoft Write with Microsoft WordPad. Support for Microsoft Word file formats came later once the Word group took over responsibility for the RichText control code.
- profile53 3y agoMan… the backstory behind anything in windows is always some insane mishmash of backwards compatibility, repurposed tooling, and other assorted insanity.
- danzk 3y agoMicrosoft used to distribute source code for a WordPad sample app with Visual Studio. https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/MFC/ole/wordpad https://github.com/microsoft/VCSamples/tree/master/VC2010Sam...
- crazygringo 3y agoOpening and saving as .docx would seem to be the only hard part. I'm assuming that's not built into the widget or into Windows. Is there an open-source drop-in docx<->rtf library out there?