Hide

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

Display
Print

C/C++ API

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

NameDescription
NM_SFTPRINTPREVIEW_CLOSEDescribes the NM_SFTPRINTPREVIEW_CLOSE_CODE notification.
NM_SFTPRINTPREVIEW_HELPDescribes the NM_SFTPRINTPREVIEW_HELP_CODE notification.
NM_SFTPRINTPREVIEW_PAGESETUPDescribes the NM_SFTPRINTPREVIEW_PAGESETUP_CODE notification.
NM_SFTPRINTPREVIEW_PAGESETUPCHANGEDDescribes the NM_SFTPRINTPREVIEW_PAGESETUPCHANGED_CODE notification.
NM_SFTPRINTPREVIEW_PRINTERCHANGEDDescribes the NM_SFTPRINTPREVIEW_PRINTERCHANGED_CODE notification.
NM_SFTPRINTPREVIEW_RETURNDescribes the NM_SFTPRINTPREVIEW_RETURN_CODE notification.
NM_SFTPRINTPREVIEW_ZOOMINOUTDescribes the NM_SFTPRINTPREVIEW_ZOOMINOUT_CODE notification.
SFTPRINTPREVIEW_CALLBACKINFOUsed with the SFTPRINTPREVIEW_CONTENTWINDOWMESSAGE private Windows message.
SFTPRINTPREVIEW_CLASSDefines the window class name of a Print Preview control.
SFTPRINTPREVIEW_COLORSUsed with the GetCtlColors and SetCtlColors functions to define color attributes.
SFTPRINTPREVIEW_CONTENTWINDOWMESSAGEDefines a private Windows message used for support of third-party controls.
SFTPRINTPREVIEW_CONTROLUsed with the GetControlInfo and SetControlInfo functions to define control attributes.
SFTPRINTPREVIEW_DRAWINFOUsed as a parameter to the SFTPRINTPREVIEW_DRAWINFOPROC function.
SFTPRINTPREVIEW_DRAWINFOPROCDefines the type of the callback routine used to render data for previewing or printing.
SFTPRINTPREVIEW_DWORD_PTRDefines a type large enough to hold a DWORD or pointer value.
SFTPRINTPREVIEW_HITTESTRESULTUsed with the HitTest function and returns information about a specified location.
SFTPRINTPREVIEW_NOCOLORDefines a COLORREF color value.
SFTPRINTPREVIEW_PRINTERINFORESULTUsed with the GetPrinterInfo and SetPrinterInfo functions to define printer settings.
SFTPRINTPREVIEW_PRINTERRESULTUsed with the GetCurrentPrinter and SetCurrentPrinter functions.
SFTPRINTPREVIEW_VERSIONDefines the product's version used to compile the application.
SFTPRINTPREVIEW_ZOOMUsed with the Zoom function to redefine the preview layout.
SFTPRINTPREVIEW_ZOOMINUsed with the ZoomIn function to redefine the preview location (zooming in or out).

Functions

NameDescription
SftPrintPreview_CheckMarginsPrintableReturns whether the specified margins are within the printer's printable area.
SftPrintPreview_CheckMarginsPrintableExternalReturns whether the specified margins are within the printer's printable area.
SftPrintPreview_DefaultPrinterRestores the default printer for this application.
SftPrintPreview_GetBitmapSizeRetrieves the display and print size of a device dependent bitmap.
SftPrintPreview_GetControlInfoRetrieves the Print Preview control attributes.
SftPrintPreview_GetCtlColorsRetrieves the Print Preview control's color attributes.
SftPrintPreview_GetCurrentPrinterReturns the current printer name and a string representing printer settings.
SftPrintPreview_GetDefaultPrinterReturns the default printer as defined by Windows.
SftPrintPreview_GetOrientationReturns the current printer's page orientation.
SftPrintPreview_GetPrinterInfoRetrieves the current printer settings.
SftPrintPreview_HitTestDetermines the area at a given location.
SftPrintPreview_IsDefaultPrinterExternalReturns whether the passed printer structure defines the default printer.
SftPrintPreview_PageSetupInvokes the built-in Page Setup dialog, used to define the page layout (margins, headers, etc.).
SftPrintPreview_PrintPrints the contents.
SftPrintPreview_PrintBitmapDisplays/prints a device dependent bitmap.
SftPrintPreview_PrintDialogInvokes the Print dialog for printer and page range selection.
SftPrintPreview_PrintSetupInvokes the Print Setup dialog for printer settings definition.
SftPrintPreview_PrintSetupExternalInvokes the Print Setup dialog for printer settings definition.
SftPrintPreview_RegisterAppRegisters the calling application for use of SftPrintPreview/DLL controls.
SftPrintPreview_RenderRicheditWindow_CallbackImplements a callback used to print/preview RichEdit controls.
SftPrintPreview_RestartForces the repositioning of all preview pages and clearing of any cached information.
SftPrintPreview_SetControlInfoDefines the Print Preview control attributes.
SftPrintPreview_SetCtlColorsDefines the Print Preview control's color attributes.
SftPrintPreview_SetCurrentPrinterDefines the current printer and optionally defines printer settings.
SftPrintPreview_SetPrinterInfoDefines the current printer settings.
SftPrintPreview_ToolBarEditSets the input focus to a control on the built-in tool bar for editing by the user.
SftPrintPreview_UnregisterAppUnregisters the application from SftPrintPreview/DLL.
SftPrintPreview_ZoomRedefines the preview layout.
SftPrintPreview_ZoomInRedefines the preview location (zooming in or out).
SftPrintPreview_ZoomResetRestores a multi-page preview.

See Also C++ Classes | Notifications


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