WordPad Rich Text and Word Editing in Windows XP
During the Windows XP era, WordPad served as an accessible,
intermediate word processor bridging the gap between basic text editors
and full office suites. It accomplished this by utilizing the underlying
Windows RichEdit control engine, native Rich Text Format (RTF)
serialization, legacy binary document filters, and Object Linking and
Embedding (OLE) architecture. These integrated system features allowed
WordPad to parse, display, and modify styled text and early Microsoft
Word .doc files without requiring Microsoft Office.
The RichEdit Control Engine
The core text manipulation and rendering in Windows XP’s WordPad
relied on Microsoft's RichEdit control (primarily
riched20.dll and msftedit.dll, representing
RichEdit 3.0 and newer iterations). Rather than implementing a custom
rendering pipeline, WordPad wrapped this system-level API to handle:
- Character Formatting: Real-time rendering of varied fonts, font sizes, colors, and basic text styles (bold, italics, underline, strikethrough).
- Paragraph Layout: Implementation of indentation, tab stops, margins, left/center/right alignment, and bulleted lists.
- Undo/Redo Buffers: Multi-level undo and redo tracking handled natively by the RichEdit architecture.
Native RTF Specification Support
WordPad used RTF (Rich Text Format) as its native file format. Because RTF defines layout and typography via standardized ASCII control words, WordPad did not need complex proprietary parsers for its primary saves. The editor could read and write RTF specifications directly into the RichEdit stream, making it highly interoperable with third-party software and higher-tier versions of Microsoft Word.
Word 6.0, 95, and 97–2002 File Converters
To read early binary Microsoft Word formats (.doc),
Windows XP bundled external text converters:
- Binary File Filters: Dynamic link libraries and
WordPad converters (such as
mswrd6.wpcandmswrd8.wpc) intercepted binary.docfiles created in Word 6.0, Word 95, and Word 97–2002. - Stream Conversion: These filters translated the binary Word structures into an RTF equivalent on the fly, streaming the translated content directly into the RichEdit buffer. When saving as a Word document, the process was reversed, stripping unsupported advanced Word features (like macros, advanced tables, and headers/footers) while preserving core text and formatting.
Object Linking and Embedding (OLE) 2.0
Windows XP supported OLE 2.0, allowing WordPad to function as an OLE container. This allowed users to:
- Insert bitmap images, vector graphics, and media clips directly into documents.
- Embed or link objects created by other applications, such as Paint canvases or Excel spreadsheets, preserving compound document standards common in early Microsoft Word workflows.
Unicode and System Locale Integration
Unlike older 16-bit and early Windows 9x editions, Windows XP's WordPad fully leveraged the Windows NT Unicode subsystem. This permitted the RichEdit control to parse multilingual text, varied code pages, and complex script rendering alongside standard formatting tags in both RTF and legacy Word documents.