virtual BOOL CanRedo(CCmdUI* pCmdUI);
pCmdUI
Points to a CCmdUI object which contains state of user interface items with the menu id.
TRUE if there are commands in the redo list; otherwise FALSE.
Checks if there are command objects in the redo list and fills the CCmdUI object with a description of the next redo operation.
If you want to display a short description of the next redo operation in the menu item, you should add a third entry to the menu item description (after the tooltip-text). CanRedo will replace the menu item text with this description and replace the %1 parameter with the redo description.
If the menu item is for example
MENUITEM “&Redo\tCtrl+A”, ID_EDIT_REDO
you should replace the menu item description with
ID_EDIT_REDO “Redo the last action\nRedo\n&Redo %1\tCtrl+A”
The last entry in the menu item description contains a %1. This will be replaced with the redo command description.
Control-Factory Specific ->
This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementUndoRedo method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.
If no concrete implementation is available this method returns FALSE. No action is performed.
END Control-Factory Specific
Class Overview | Class Members