Jump to content

wpSetLinkToObject

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method links the shadow object to the specified object.

Syntax

_wpSetLinkToObject(somSelf, FromObject)

Parameters

somSelf (WPShadow *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPShadow.
FromObject (WPObject *) - input
Pointer to the object to be linked to the shadow.

Returns

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

How to Override

This method is generally not overridden.

Usage

This method can be called at any time to link a shadow to an object.

Remarks

This method is not covered in the provided text.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPShadow *somSelf; /* Pointer to the object on which the method is being invoked. */
WPObject *FromObject; /* Pointer to the object to be linked to the shadow. */
BOOL rc; /* Success indicator. */

rc = _wpSetLinkToObject(somSelf, FromObject);