WpSetDefStatusView: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:wpSetDefStatusView}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method is called to set the default status view when Advanced Power Management (APM) is enabled. ==Syntax== wpSetDefStatusView(somSelf, ulDefStatus) ==Parameters== ;''somSelf'' (WPPower *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPower. ;''ulDefStatus'' (ULONG) - input..." |
(No difference)
|
Latest revision as of 21:43, 24 November 2025
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method is called to set the default status view when Advanced Power Management (APM) is enabled.
Syntax
wpSetDefStatusView(somSelf, ulDefStatus)
Parameters
- somSelf (WPPower *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPPower.
- ulDefStatus (ULONG) - input
- Setting for the default status view.
- Possible values are described in the following list:
- OPEN_STATUS Full status of the object, including the battery life, power source, and battery state.
- OPEN_BATTERY Battery life indicator only.
Returns
- rc (none) - returns
- There is no return value for this method.
How to Override
This method is generally not overridden.
Usage
This method can be called at any time to set the default status view for this object.
Remarks
This method sets the default status view of the object while Advanced Power Management (APM) is enabled. If it is not enabled, this method sets the default status view for the next time APM is enabled.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPPower *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulDefStatus; /* Setting for the default status view. */ wpSetDefStatusView(somSelf, ulDefStatus);