Jump to content

wpSetAutoRefresh

From EDM2

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 status window's automatic refresh option.

Syntax

_wpSetAutoRefresh(somSelf, fAutoRefresh)

Parameters

somSelf (WPPower *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPower.
fAutoRefresh (BOOL) - input
Automatic refresh flag.
TRUE: Enable automatic refresh of power status window.
FALSE: Disable automatic refresh of power status window.

Returns

There is no return value for this method.

Example Code

Declaration:

#define INCL_WINWORKPLACE
#include <os2.h>

WPPower      *somSelf;        /* Pointer to the object on which the method is being invoked. */
BOOL         fAutoRefresh;  /* Automatic refresh flag. */

wpSetAutoRefresh(somSelf, fAutoRefresh);

Related Methods