WpPrintPifFile: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpPrintPifFile}} This instance method is called to print an object of type "Pif". ==Syntax== _wpPrintPifFile(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**. Fo..." |
(No difference)
|
Latest revision as of 03:58, 17 November 2025
This instance method is called to print an object of type "Pif".
Syntax
_wpPrintPifFile(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 Pif 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 = _wpPrintPifFile(somSelf, pPrintDest);