O'Reilly logo

C++ Windows Programming by Stefan Björnander

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required