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.
#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);