/********************************************************************
                         Restore.c

   Description: Restores document windows on StartUp
   Syntax:      Restore.c

   Copy this file in the GWDTextEditor\Script\StartUp directory
   (C:\GTEdit\Script\StartUp by default)

   Author: Vedran Gaco
********************************************************************/

#include <editor/doc.h>
#include <editor/macros.h>

int main(int argc, char *argv[])
{
   HDOC hDoc = Gte_GetActiveDocument();
   if(hDoc)
   {
      GM_WindowRestore(hDoc);
   }
   return 0;
}
