WpPrintUnknownFile: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpPrintUnknownFile}} 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 **Dev..." |
No edit summary |
||
| Line 10: | Line 10: | ||
:Points to an object of class [[WPDataFile]]. | :Points to an object of class [[WPDataFile]]. | ||
;''pPrintDest'' ([[ | ;''pPrintDest'' (P[[PRINTDEST]] *) - input | ||
:Pointer to the print data. | :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**. | :It contains all the parameters required to call **DevPostDeviceModes** and **DevOpenDC**. For more information about **DevPostDeviceModes** and **DevOpenDC**, see the **Presentation Manager Programming Reference**. | ||
Latest revision as of 04:02, 17 November 2025
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);