Jump to content

wpReplacementIsInEffect

From EDM2

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

This instance method determines whether the given class is currently replaced by a specified class.

Syntax

_wpReplacementIsInEffect(somSelf, pszOldClass, pszNewClass)

Parameters

somSelf (WPClassManager *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class **SOMClassMgr**.
pszOldClass (PSZ) - input
Old class.
pszNewClass (PSZ) - input
New class.

Returns

flReplaced (BOOL) - returns
Flag indicating whether the given old class is currently replaced by the specified new class.
  • **TRUE** pszOldClass is currently replaced by pszNewClass.
  • **FALSE** pszOldClass is not currently replaced by pszNewClass.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time. It is invoked using **SOMClasMgrObject**.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPClassManager *somSelf; /* Pointer to the object on which the method is being invoked. */
PSZ pszOldClass; /* Old class. */
PSZ pszNewClass; /* New class. */
BOOL flReplaced; /* Flag indicating whether the given old class is currently replaced by the specified new class. */

flReplaced = _wpReplacementIsInEffect(somSelf,
                pszOldClass, pszNewClass);