Hide

SftPrintPreview/DLL 2.0 - Print Preview Control for C/C++

Display
Print

Page Setup Dialog

The built-in Page Setup Dialog allows an end-user using your application to customize the output's appearance, such as header titles, footers, margins, etc.

This modal dialog offers two pages, accessible via the tab control at the top, one page labeled "Margins" to modify the output's basic positioning. The other page labeled "Headers" defines the output's header and footer appearance.

An application invokes the Page Setup dialog using the PageSetup function.

The NM_SFTPRINTPREVIEW_PAGESETUPCHANGED_CODE notification code is sent when the user has modified the page layout using the Page Setup dialog. New settings are reflected in the SFTPRINTPREVIEW_CONTROL structure, which can be retrieved using the GetControlInfo function.

Any settings that the user modifies are lost once the application ends, unless they are saved in a suitable location by the application. SftPrintPreview/DLL does not provide a built-in load/save mechanism for page layout definitions.

When defining the use of Windows themes (see SFTPRINTPREVIEW_CONTROL, fUseThemes member), the application must use an application manifest to make use of the Common Controls version 6, otherwise the Page Setup dialog will use themes for some of the controls, but not for the entire dialog.


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.