Hide

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

Display
Print

Zoom Function

The Zoom function redefines the preview layout.

C

void SftPrintPreview_Zoom(HWND hwnd, LPCSFTPRINTPREVIEW_ZOOM lpZoom);

C++

void CSftPrintPreview::Zoom(LPCSFTPRINTPREVIEW_ZOOM lpZoom);

Parameters

hwnd

The window handle of the Print Preview control.

lpZoom

A pointer to a SFTPRINTPREVIEW_ZOOM structure defining the new preview layout.

Comments

The Zoom function redefines the preview layout.

The ZoomIn function can be used to redefine the preview location (zooming in or out). The ZoomReset function can be used to restore a multi-page preview.

Additional and more detailed layout definitions are possible using the SetControlInfo function.

Example

C

SFTPRINTPREVIEW_ZOOM zoom;
memset(&zoom, 0, sizeof(zoom));
zoom.zoomFactor = SFTPRINTPREVIEW_ZOOM_FULLPAGE;
zoom.centerPosX = zoom.centerPosY = 0.0;
SftPrintPreview_Zoom(hwndPreview, &zoom);

C++

SFTPRINTPREVIEW_ZOOM zoom;
memset(&zoom, 0, sizeof(zoom));
zoom.zoomFactor = SFTPRINTPREVIEW_ZOOM_FULLPAGE;
zoom.centerPosX = zoom.centerPosY = 0.0;
m_Preview.Zoom(&zoom);

See Also C/C++ API | C++ Classes | Notifications


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