/* SampApp.h provides the Windows Application class.
     There is no implementation file.

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

#include "SampWin.h"

class SampleApplication :               // a SampleApplication
        public TApplication             // is-a TApplication
{
 public:
   // --- class constructor ------------------------------------
   SampleApplication(                   // construct a S-A with
                      LPSTR AName,           //  this Name/Title for
                    HANDLE hInstance,      //   this process,
                    HANDLE hPrevInstance,  //   this parent,
                    LPSTR lpCmdLine,       //   this commandline,
                    int nCmdShow)          //   displayed like this,
                                    // and derived from TApplication,
          : TApplication(AName, hInstance, hPrevInstance,
                          lpCmdLine,nCmdShow)
   { }                           // which does all of the work

   // --- InitMainWindow is called by TApplication::Run
   //      (which is called by main, below)
   //      after Run performs its set-up duties...
   virtual void InitMainWindow()
   {
      MainWindow = new SampleWindow(  // create a new window
                                 NULL,  //  with no parent
                               Name); //  and with this Name/Title
   }
};
