Chapter 6. Building a Word Processor

In this chapter, we build a word processor that is capable of handling text on character level: that is, a single character that has its own font, color, size, and style. We also introduce caret handling, printing and print previewing, and file dropping, as well as clipboard handling with ASCII and Unicode text, which means that we can cut and paste between this application and, for instance, a text editor.

Building a Word Processor

Auxiliary classes

A document in this application is made up of pages, paragraphs, lines, and characters. Let me try to explain how it all hangs together:

  • First of all, the document is made up of a list of characters. ...

Get C++ Windows Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.