|
|
|
ZoomIn |
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