SftPrintPreview/DLL 2.0

C/C++ API

Softel vdm, Inc.

An application communicates with the SftPrintPreview/DLL control by sending messages using the Windows SendMessage function. To simplify the process, SftPrintPreview/DLL offers predefined macros for messages. This eliminates the casting of parameters and the use of SendMessage.

Definitions and Structures

Name

Description

NM_SFTPRINTPREVIEW_CLOSE

Describes the NM_SFTPRINTPREVIEW_CLOSE_CODE notification.

NM_SFTPRINTPREVIEW_HELP

Describes the NM_SFTPRINTPREVIEW_HELP_CODE notification.

NM_SFTPRINTPREVIEW_PAGESETUP

Describes the NM_SFTPRINTPREVIEW_PAGESETUP_CODE notification.

NM_SFTPRINTPREVIEW_PAGESETUPCHANGED

Describes the NM_SFTPRINTPREVIEW_PAGESETUPCHANGED_CODE notification.

NM_SFTPRINTPREVIEW_PRINTERCHANGED

Describes the NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification.

NM_SFTPRINTPREVIEW_RETURN

Describes the NM_SFTPRINTPREVIEW_RETURN_CODE notification.

NM_SFTPRINTPREVIEW_ZOOMINOUT

Describes the NM_SFTPRINTPREVIEW_ZOOMINOUT_CODE notification.

SFTPRINTPREVIEW_CALLBACKINFO

Used with the SFTPRINTPREVIEW_CONTENTWINDOWMESSAGE private Windows message.

SFTPRINTPREVIEW_CLASS

Defines the window class name of a Print Preview control.

SFTPRINTPREVIEW_COLORS

Used with the GetCtlColors and SetCtlColors functions to define color attributes.

SFTPRINTPREVIEW_CONTENTWINDOWMESSAGE

Defines a private Windows message used for support of third-party controls.

SFTPRINTPREVIEW_CONTROL

Used with the GetControlInfo and SetControlInfo functions to define control attributes.

SFTPRINTPREVIEW_DRAWINFO

Used as a parameter to the SFTPRINTPREVIEW_DRAWINFOPROC function.

SFTPRINTPREVIEW_DRAWINFOPROC

Defines the type of the callback routine used to render data for previewing or printing.

SFTPRINTPREVIEW_DWORD_PTR

Defines a type large enough to hold a DWORD or pointer value.

SFTPRINTPREVIEW_HITTESTRESULT

Used with the HitTest function and returns information about a specified location.

SFTPRINTPREVIEW_NOCOLOR

Defines a COLORREF color value.

SFTPRINTPREVIEW_PRINTERINFORESULT

Used with the GetPrinterInfo and SetPrinterInfo functions to define printer settings.

SFTPRINTPREVIEW_PRINTERRESULT

Used with the GetCurrentPrinter and SetCurrentPrinter functions.

SFTPRINTPREVIEW_VERSION

Defines the product's version used to compile the application.

SFTPRINTPREVIEW_ZOOM

Used with the Zoom function to redefine the preview layout.

SFTPRINTPREVIEW_ZOOMIN

Used with the ZoomIn function to redefine the preview location (zooming in or out).

Functions

Name

Description

SftPrintPreview_CheckMarginsPrintable

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

SftPrintPreview_CheckMarginsPrintableExternal

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

SftPrintPreview_DefaultPrinter

Restores the default printer for this application.

SftPrintPreview_GetBitmapSize

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

SftPrintPreview_GetControlInfo

Retrieves the Print Preview control attributes.

SftPrintPreview_GetCtlColors

Retrieves the Print Preview control's color attributes.

SftPrintPreview_GetCurrentPrinter

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

SftPrintPreview_GetDefaultPrinter

Returns the default printer as defined by Windows.

SftPrintPreview_GetOrientation

Returns the current printer's page orientation.

SftPrintPreview_GetPrinterInfo

Retrieves the current printer settings.

SftPrintPreview_HitTest

Determines the area at a given location.

SftPrintPreview_IsDefaultPrinterExternal

Returns whether the passed printer structure defines the default printer.

SftPrintPreview_PageSetup

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

SftPrintPreview_Print

Prints the contents.

SftPrintPreview_PrintBitmap

Displays/prints a device dependent bitmap.

SftPrintPreview_PrintDialog

Invokes the Print dialog for printer and page range selection.

SftPrintPreview_PrintSetup

Invokes the Print Setup dialog for printer settings definition.

SftPrintPreview_PrintSetupExternal

Invokes the Print Setup dialog for printer settings definition.

SftPrintPreview_RegisterApp

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

SftPrintPreview_RenderRicheditWindow_Callback

Implements a callback used to print/preview RichEdit controls.

SftPrintPreview_Restart

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

SftPrintPreview_SetControlInfo

Defines the Print Preview control attributes.

SftPrintPreview_SetCtlColors

Defines the Print Preview control's color attributes.

SftPrintPreview_SetCurrentPrinter

Defines the current printer and optionally defines printer settings.

SftPrintPreview_SetPrinterInfo

Defines the current printer settings.

SftPrintPreview_ToolBarEdit

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

SftPrintPreview_UnregisterApp

Unregisters the application from SftPrintPreview/DLL.

SftPrintPreview_Zoom

Redefines the preview layout.

SftPrintPreview_ZoomIn

Redefines the preview location (zooming in or out).

SftPrintPreview_ZoomReset

Restores a multi-page preview.

See Also  C++ Classes  |  Notifications


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