XLL+ Class Library (7.0)

CXlSuspendEcho Class

Sets Echo to false, and restores it to true when all instances are destroyed.

class CXlSuspendEcho

Overview

Use this class to switch off screen updating during macro operations. Screen updating will be restored when the object is destroyed.

If more than one instance of CXlSuspendEcho exists, then screen updating will only be restored when the last one goes out of scope. It is thus possible to declare a local instance of CXlSuspendEcho in one function, and another one in a function called by the first function. In this case the second instance will effectively be ignored, and screen updating will only be restored when the outermost instance is destroyed.

Requirements

Header: xlpstatehelpers.h

See Also

CXlSuspendEcho Methods | xlpstatehelpers.h