Jump to content

wpPrintUnknownFile

From EDM2
Revision as of 04:02, 17 November 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This instance method is called to print an object of "unknown" type.

Syntax

_wpPrintUnknownFile(somSelf, pPrintDest)

Parameters

somSelf (WPDataFile *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPDataFile.
pPrintDest (PPRINTDEST *) - input
Pointer to the print data.
It contains all the parameters required to call **DevPostDeviceModes** and **DevOpenDC**. For more information about **DevPostDeviceModes** and **DevOpenDC**, see the **Presentation Manager Programming Reference**.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method can be overridden by any object class that wants to replace the system-supplied Unknown File print method. It is normally called asynchronously as a result of a call to wpPrintObject.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */
PPRINTDEST *pPrintDest; /* Pointer to the print data. */
BOOL rc; /* Success indicator. */

rc = _wpPrintUnknownFile(somSelf, pPrintDest);

Related Methods