MarkMove Example VC++

In this example, when the MarkMove event fires, the Undo selection on the Edit menu is updated so it indicates the action the Undo method will perform if the user invokes it.

void CImgEdit2Dlg::OnMarkMove(short Button, short Shift, long x, long y) 
{
    // This event could be used after an annotation mark is moved
    // to change the caption on an undo menu selection to indicate
    // what action undo will take.
    mnuEditUndo.Caption = "Undo Annotation Move";
}