if(buf->getBackupFileName()==TEXT("")||!::PathFileExists(buf->getBackupFileName().c_str()))//backup file has been deleted from outside
{
// warning user and save it if user want it.
activateBuffer(id,MAIN_VIEW);
if(!activateBuffer(id,SUB_VIEW))
switchEditViewTo(MAIN_VIEW);
TCHARpattern[140]=TEXT("Your backup file cannot be found (deleted from outside).\rSave it otherwise your data will be lost\rDo you wan to save file \"%s\" ?");
if(buf->getBackupFileName()==TEXT("")||!::PathFileExists(buf->getBackupFileName().c_str()))//backup file has been deleted from outside
{
// warning user and save it if user want it.
activateBuffer(id,SUB_VIEW);
switchEditViewTo(SUB_VIEW);
TCHARpattern[140]=TEXT("Your backup file cannot be found (deleted from outside).\rSave it otherwise your data will be lost\rDo you wan to save file \"%s\" ?");