WpRender: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpRender}} This instance method is called to request a drag-rendering or drop-rendering format from the object. ==Syntax== _wpRender(somSelf, pdxfer) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ;''pdxfer'' (PDRAGTRANSFER) - input :Pointer to a DRAGTRANSFER structure. ==Returns== ;''mresreturn'' (MRESULT) - returns :See the **DM..." |
(No difference)
|
Revision as of 02:13, 17 November 2025
This instance method is called to request a drag-rendering or drop-rendering format from the object.
Syntax
_wpRender(somSelf, pdxfer)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- pdxfer (PDRAGTRANSFER) - input
- Pointer to a DRAGTRANSFER structure.
Returns
- mresreturn (MRESULT) - returns
- See the **DM_RENDER** message in the **Presentation Manager Programming Reference** for a description of the return value.
How to Override
This method should be overridden to return a class-specific rendering mechanism and format.
Usage
This method is generally called only by the system as the folder containing the object processed by the **DM_RENDER** message.
Remarks
The **wpRender** method is called when the object receives a **DM_RENDER** message. See the **DM_RENDER** message in the **Presentation Manager Programming Reference** for more information.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ PDRAGTRANSFER *pdxfer; /* Pointer to a DRAGTRANSFER structure. */ MRESULT mresreturn; /* See the DM_RENDER message in the Presentation Manager Programming Reference for a description of the return value. */ mresreturn = _wpRender(somSelf, pdxfer);