Adding undo function to notepad....
hey
im beginner and making a notepad program...
i just wanted to know wats the pseudocode behind the undo function... wats the trick of doing it..... u cud just hint me coz my way is long..... i wanted to knw the standard way.... ill code it but just show me the light...
Re: Adding undo function to notepad....
Re: Adding undo function to notepad....
The above link has a class for unlimited undos/redos. But if you only wanted to use the single Undo that are built into the textbox and that you can pick from the right-click popup menu just use SendKeys and send Ctrl+Z to the text box. Or use the SendMessage API function with the EM_UNDO message.