Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.ContentProviderCallbackX Method

Defines the callback that provides printable content.

Syntax

VB.NETobject.ContentProviderCallbackX(ByVal Handle As Integer, ByVal CallbackPointer As Integer, ByVal WorkAreaPointer As Integer)
VBobject.ContentProviderCallbackX(ByVal Handle As Long, ByVal CallbackPointer As Long, ByVal WorkAreaPointer As Long)
C#.NETvoid object.ContentProviderCallbackX(int Handle, int CallbackPointer, int WorkAreaPointer);
VC++HRESULT object->ContentProviderCallbackX(long Handle, long CallbackPointer, long WorkAreaPointer);
CHRESULT object->raw_ContentProviderCallbackX(long Handle, long CallbackPointer, long WorkAreaPointer);

object

A SftPrintPreview object.

Handle

A window handle describing the window to be printed or previewed. This value can be 0 if application-generated output is rendered using the RenderContent event.

CallbackPointer

A callback routine. This value can be 0 (NULL) if application-generated output is rendered using the RenderContent event. When rendering a RichEdit control, Handle defines the RichEdit control and CallbackPointer is set to the RenderRichEdit or RenderRichEditX property value to print and preview the RichEdit control. This CallbackPointer is of type SFTPRINTPREVIEW_DRAWINFOPROC, which is defined by SftPrintPreview/DLL and can be used to implement a callback function as required by SftPrintPreview/DLL (requires SftPrintPreview/DLL).

WorkAreaPointer

An application-defined value. This value is available during the RenderContent event using the RenderingWorkArea property.

Comments

The ContentProviderCallbackX method defines the callback that provides printable content.

This method is not supported for use with Visual Basic 6.0

The use of the ContentProviderCallback or ContentProviderCallbackX methods override settings defined using a prior call to the ContentProvider property.

The ContentProviderCallback or ContentProviderCallbackX methods are functionally equivalent, but use different data types.

RichEdit controls require the use of the RenderRichEdit or RenderRichEditX functions as a CallbackPointer for the ContentProviderCallback or ContentProviderCallbackX methods. The ContentProvider property is not used. The RenderRichEdit function, provided by SftPrintPreview/OCX, provides all rendering support for RichEdit controls. The RenderContent event is not used.

For application-generated output, the ContentProviderCallback or ContentProviderCallbackX methods are used with a CallbackPointer value of 0. The RenderContent event is used to render pages. The ContentProvider property is not used

SftTree/DLL and SftTree/OCX 5.0 (and up) are rendered by setting the ContentProvider property to the window handle of a SftTree/DLL or SftTree/OCX control. The ContentProviderCallback or ContentProviderCallbackX methods are not used. The DataProvider property is also supported for use with SftTree/DLL or SftTree/OCX controls. All rendering is provided by SftTree/DLL or SftTree/OCX through the SFTPRINTPREVIEW_CONTENTWINDOWMESSAGE protocol. The RenderContent event is not used.

See Also SftPrintPreview Object | Object Hierarchy


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