int error = FALSE; error = enumProc(&edPtr->wImage, IMG_TAB, lp1, lp2); if ( error )undoProc (&edPtr->wImage, IMG_TAB, lp1, lp2);