Hide

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

Display
Print

ZoomIn Function

The ZoomIn function redefines the preview location (zooming in or out).

C

void SftPrintPreview_ZoomIn(HWND hwnd, LPCSFTPRINTPREVIEW_ZOOMIN lpZoom);

C++

void CSftPrintPreview::ZoomIn(LPCSFTPRINTPREVIEW_ZOOMIN lpZoom);

Parameters

hwnd

The window handle of the Print Preview control.

lpZoom

A pointer to a SFTPRINTPREVIEW_ZOOMIN structure defining the new preview location.

Comments

The ZoomIn function redefines the preview location (zooming in or out).

The Zoom function can be used to redefine the preview layout. 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_ZOOMIN z;
memset(&z, 0, sizeof(z));
z.zoomFactor = +100;
z.centerPosX = z.centerPosY = -1.0;
SftPrintPreview_ZoomIn(hwndPreview, &z);

C++

SFTPRINTPREVIEW_ZOOMIN z;
memset(&z, 0, sizeof(z));
z.zoomFactor = +100;
z.centerPosX = z.centerPosY = -1.0;
m_Preview.ZoomIn(&z);

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


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