Hide

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

Display
Print

CSftPrintPreview_View::CustomizeControl Function

The CustomizeControl function is called for further Print Preview control customizations.

C++

virtual void CSftPrintPreview_View::CustomizeControl(LPSFTPRINTPREVIEW_CONTROL lpCtl);

Parameters

lpCtl

A pointer to the SFTPRINTPREVIEW_CONTROL structure defining the current control settings.

Comments

The CustomizeControl function is called for further Print Preview control customizations.

It is used to initialize the Print Preview control with application specific data. This function is called once, before the first page is displayed or printed.

Example

C++

void CTreePreview::CustomizeControl(LPSFTPRINTPREVIEW_CONTROL lpCtl)
{
    lpCtl->numPageRows = 1; // default to 1x2 pages
    lpCtl->numPageGroups = 2;
    lpCtl->zoom = 0; // start out with multiple pages

    lstrcpy(lpCtl->szHeaderRight, TEXT("SftPrintPreview/DLL PreviewSftTree Sample"));
    lstrcpy(lpCtl->szFooterLeft, TEXT("www.softelvdm.com"));
}

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


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