Jump to content

wpQueryContainerFlagPtr

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

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

This instance method returns a pointer to the flag indicating whether or not an object is in a container.

Syntax

_wpQueryContainerFlagPtr(somSelf)

Parameters

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

Returns

pFlagIndication (PULONG) - returns
Pointer to the flag indicating whether or not the object has been inserted into a container.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time to query the pointer to the flag.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
PULONG pFlagIndication; /* Pointer to the flag indicating whether or not the object has been inserted into a container. */

pFlagIndication = _wpQueryContainerFlagPtr(
                    somSelf);