/* main.cpp is the main program for the Windows application.

   Joel Adams, Spring 1995.
------------------------------------------------------------*/

#include "SampApp.h"

int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance,
                                             LPSTR lpCmdLine, int nCmdShow)
{
   // 4a. construct an application object
   SampleApplication                       // construct a Windows
         ExampleApp(                       //  application, with
              "Sample Windows Application",  //  this Name, for
            hInstance,                     //  this process
            hPrevInstance,                 //  this parent process
            lpCmdLine,                     //  these cmdline args
            nCmdShow);                     //  displayed this way

   // 4b. call TApplication::Run (that calls our InitMainWindow),
   //  and then executes a continuous loop,
   //  processing mouse event messages
   ExampleApp.Run();

   // 4c. return termination status
   return ExampleApp.Status;
}
