wpQueryScreenGroupID
Appearance
This method is specific to version 3 of the OS/2 operating system.
This instance method returns the screen group ID of the running application for a given object.
Syntax
_wpQueryScreenGroupID(somSelf, usPrevSgId)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- usPrevSgId (USHORT) - input
- Previous screen group ID.
- **0** The first ID is returned.
- **other** The next ID after the *usPrevSgId* is returned.
Returns
- usScreenId (USHORT) - returns
- Screen group ID.
How to Override
This method should not be overridden.
Usage
This method can be called at any time.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
USHORT usPrevSgId; /* Previous screen group ID. */
USHORT usScreenId; /* Screen group ID. */
usScreenId = _wpQueryScreenGroupID(somSelf,
usPrevSgId);