windows_programming_notes.nbk: Home | Index | Next Page: WM_USERCHANGED | Previous Page: WM_TCARD


 WM_UNDO

An application sends a WM_UNDO message to an edit control to undo the last operation. When this message is sent to an edit control, the previously deleted text is restored or the previously added text is deleted.

To send this message, call the SendMessage function with the following parameters.

    SendMessage( 
      (HWND) hWnd,              // handle to destination window 
      WM_UNDO,                  // message to send
      (WPARAM) wParam,          // not used; must be zero
      (LPARAM) lParam          // not used; must be zero
    );

Parameters

This message has no parameters.

Return Values

If the message succeeds, the return value is TRUE.

If the message fails, the return value is FALSE.

Remarks

Rich Edit: This message is not supported.

Requirements

  Windows NT/2000 or later: Requires Windows NT 3.1 or later.
  Windows 95/98/Me: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

windows_programming_notes.nbk: Home | Index | Next Page: WM_USERCHANGED | Previous Page: WM_TCARD


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time