Page setup

The final section describes page setup functionality, divided into the PageSetupInfo class, which handles page setup information, the PageSetupDialog, which is a subclass of Dialog displayed for the user to input page setup information, and the Template function, which translates code input by the user in the Page Setup dialog to actual values.

Page setup information

The PageSetupInfo class holds information about the page: portrait or landscape orientation, the margins, the text and font of the header and footer, whether the header and footer will be present on the first page, and whether the pages will be enclosed by a frame.

PageSetupInfo.h

namespace SmallWindows { enum Orientation {Portrait, Landscape}; class PageSetupInfo { public: ...

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.