Jump to content

wpRender

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

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);

Related Methods