CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Code for "Undo"

  1. #1
    Join Date
    Sep 2001
    Posts
    1

    Code for "Undo"

    what is the code for undo???


  2. #2
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Code for "Undo"

    Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long
    Global Const WM_USER = &h400
    Global Const EM_UNDO = WM_USER + 23

    sub command1_click
    UndoResult = SendMessage(myControl.hWnd, EM_UNDO, 0, 0)
    end sub




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

Featured