SftPrintPreview/DLL 2.0

C++ Classes

Softel vdm, Inc.

Class

Description

CSftPrintPreview

Control class

CSftPrintPreview_App

Application

CSftPrintPreview_Main

Window with Print Preview support

CSftPrintPreview_View

Print Preview Window

CSftPrintPreview Class

Name

Description

CheckMarginsPrintable

Returns whether the specified margins are within the printer's printable area.

CheckMarginsPrintableExternal

Returns whether the specified margins are within the printer's printable area.

Create

Creates a Print Preview control window and attaches it to the CSftPrintPreview object.

CreateEx

Creates a Print Preview control window and attaches it to the CSftPrintPreview object.

CSftPrintPreview

Standard constructor.

DefaultPrinter

Restores the default printer for this application.

GetBitmapSize

Retrieves the display and print size of a device dependent bitmap.

GetControlInfo

Retrieves the Print Preview control attributes.

GetCtlColors

Retrieves the Print Preview control's color attributes.

GetCurrentPrinter

Returns the current printer name and a string representing printer settings.

GetDefaultPrinter

Returns the default printer as defined by Windows.

GetOrientation

Returns the current printer's page orientation.

GetPrinterInfo

Retrieves the current printer settings.

HitTest

Determines the area at a given location.

IsDefaultPrinterExternal

Returns whether the passed printer structure defines the default printer.

PageSetup

Invokes the built-in Page Setup dialog, used to define the page layout (margins, headers, etc.).

Print

Prints the contents.

PrintBitmap

Displays/prints a device dependent bitmap.

PrintDialog

Invokes the Print dialog for printer and page range selection.

PrintSetup

Invokes the Print Setup dialog for printer settings definition.

PrintSetupExternal

Invokes the Print Setup dialog for printer settings definition.

RegisterApp

Registers the calling application for use of SftPrintPreview/DLL controls.

Restart

Forces the repositioning of all preview pages and clearing of any cached information.

SetControlInfo

Defines the Print Preview control attributes.

SetCtlColors

Defines the Print Preview control's color attributes.

SetCurrentPrinter

Defines the current printer and optionally defines printer settings.

SetPrinterInfo

Defines the current printer settings.

ToolBarEdit

Sets the input focus to a control on the built-in tool bar for editing by the user.

UnregisterApp

Unregisters the application from SftPrintPreview/DLL.

Zoom

Redefines the preview layout.

ZoomIn

Redefines the preview location (zooming in or out).

ZoomReset

Restores a multi-page preview.

CSftPrintPreview_App Class

The CSftPrintPreview_App class is used by the CSftPrintPreview_Main and CSftPrintPreview_View classes to retrieve application printer settings.

The application's usual CWinApp object has to be derived from CSftPrintPreview_App instead.

CSftPrintPreview_Main Class

By using multiple inheritance, the class CSftPrintPreview_Main is used to extend an application's view or window class to add print/preview support.

Name

Description

FilePrint

Prints the specified contents.

FilePrintPreview

Creates a Print Preview window displaying the specified contents.

OnPrintClearCache

Called when the printed/previewed output is reformatted.

OnPrintInitialize

Called to initialize print/preview of one or more pages.

OnPrintOnePage

Called to print/preview one page.

OnPrintTerminate

Called to end print/preview of one or more pages.

CSftPrintPreview_View Class

The CSftPrintPreview_View class implements a complete Print Preview view, including SftPrintPreview control with all its features.

Name

Description

CustomizeControl

Called for further Print Preview control customizations.

GetAccelResourceID

Called to obtain a keyboard accelerator table.

GetMenuResourceID

Called to obtain a menu resource ID.

GetOutputName

Called to obtain the current output name.

On... Menu Handlers

A collection of menu command handlers, implementing user actions affecting the preview display.

See Also  C/C++ API  |  Notifications


Feedback / comments / error reports for this topic
© 2016 - Softel vdm, Inc. - www.softelvdm.com