Results 1 to 3 of 3

Thread: Adding undo function to notepad....

  1. #1

    Thread Starter
    Registered User
    Join Date
    Mar 2005
    Posts
    66

    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...

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Adding undo function to notepad....


  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width