wpSetPowerConfirmation
Appearance
This method is **specific to version 2.1, or higher, of the OS/2 operating system**.
This instance method **provides the ability to enable or disable the power object confirmation message** displayed when a Standby or Suspend request is made from the pop-up menu of the power object.
Syntax
_wpSetPowerConfirmation(somSelf, fConfirm)
Parameters
- somSelf (WPPower *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPPower.
- fConfirm (BOOL) - input
- Confirmation message.
- TRUE: Enable power confirmation message**.
- FALSE: Disable power confirmation message**.
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 in order to set the power confirmation option.
Example Code
Declaration:
#define INCL_WINWORKPLACE #include <os2.h> WPPower *somSelf; /* Pointer to the object on which the method is being invoked. */ BOOL fConfirm; /* Confirmation message. */ wpSetPowerConfirmation(somSelf, fConfirm);