MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

EM_CANREDO Message


The EM_CANREDO message determines whether there are any actions in the control redo queue.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) EM_CANREDO,     // message ID
   (WPARAM) wParam,     // = (WPARAM) () wParam;
   (LPARAM) lParam     // = (LPARAM) () lParam;
);

Parameters

wParam
Not used; must be zero.
lParam
Not used; must be zero.

Return Value

If there are actions in the control redo queue, the return value is a nonzero value.

If the redo queue is empty, the return value is zero.


Remarks

To redo the most recent undo operation, send the EM_REDO message.

Message Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95 with Rich Edit 2.0 , Windows 98, Windows NT 4.0

See Also

Rich Edit Controls, EM_GETREDONAME, EM_GETUNDONAME, EM_REDO, EM_UNDO
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 c 2002 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility