Re: Undo stack in RichEdit
- Posted by Antonio Alessi <a.admin at myway.it> Apr 12, 2006
- 521 views
Al Getz wrote: > > Antonio Alessi wrote: > > > > > > When text is changed into a RichEdit window, the Undo feature become active > > > > and at every change it is increased one step. > > Note that this does not occurr on every single character change, but after > > a string, or some text is changed. > > > > I need to know the current number of these steps, or the stack length( ) > > of the Undo feature. Is there a way to get this info? > > > > Thanks to everybody for an answer. > > > > Antonio Alessi > > Hi there Antonio, > > I think you can use EM_SETUNDOLIMIT > and there might be a GET version too, but dont remember offhand. > > Hi Al, thanks for the advice; but I don't refer to the absolute POSSIBLE number of these steps (the LIMIT is 100, with the win32lib 0-59), but the current stack counter, i.e. how many Undo commands can be executed, or the true number of changes that culd be undone in any moment. Somebody else? antonio