Chapter 13. The Registry, Clipboard, Standard Dialogs, and Print Preview

This chapter describes the implementation of:

  • The Registry: A Windows database holding information between application executions.
  • The Clipboard: A Windows database holding information that has been cut, copied, and pasted.
  • The standard dialogs: This is used for saving and opening documents, for colors and fonts, and for printing.
  • Print preview: In the StandardDocument class, it is possible to view the document on the screen as if it is being printed.

The registry

The static write, read, and erase methods in the Registry class operate on values of the Integer, Double, Boolean, and String types, as well as memory blocks in the Windows Registry.

Registry.h:

namespace SmallWindows ...

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.