Undo operations

In this section:


Performs one level of undo operation. A single undo may reverse the effects of several function calls. Direct user interactions with the edit box are tagged so that one user command is reversed at each step (even though it may be implemented in several steps). Other operations should be tagged as required using NEXT_EDIT_OPERATION@ described next.


Calling this function indicates to the edit box that future changes are to be considered to belong to a new user operation. Typically you would call this routine at the head of a menu call-back function that was about to change the edit buffer in some way. If you perform a long series of changes without calling this function, they will all be reversed as a block if the user performs an undo operation.

Alternatively you can pass the window handle instead of the EDIT_INFO.

See also: EDIT_INFO



Copyright © 1999-2024 Silverfrost Limited