Hide

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

Display
Print

Restart Function

The Restart function forces the repositioning of all preview pages and clearing of any cached information.

C

void SftPrintPreview_Restart(HWND hwnd, BOOL fTop);

C++

void CSftPrintPreview::Restart(BOOL fTop = TRUE);

Parameters

hwnd

The window handle of the Print Preview control.

fTop

Set to TRUE to position the preview at the first page. Otherwise set to FALSE to display the last page(s).

Comments

The Restart function forces the repositioning of all preview pages and clearing of any cached information.

This is typically used if printer attributes or page formatting changes, which requires all pages to be reformatted.

Example

C

SftPrintPreview_Restart(m_hwndPreview, TRUE);

C++

m_Preview.SftPrintPreview_Restart();

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


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