home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Papers / C++ Exceptions / µShell / Source / SillyBalls.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-24  |  585 b   |  38 lines  |  [TEXT/CWIE]

  1. #ifndef __SILLYBALLS__
  2. #define __SILLYBALLS__
  3. #pragma once
  4.  
  5. #include <Windows.h>
  6. #include <Threads.h>
  7.  
  8. #include "EventLoop.h"
  9.  
  10. class TSillyBallWindow
  11. {
  12.     WindowPtr    fWindow;
  13.     ThreadID    fThreadID;
  14.     
  15. public:
  16.     TSillyBallWindow();
  17.     ~TSillyBallWindow();
  18.  
  19.     void        NewBall();
  20.  
  21.     static pascal voidPtr SillyBallThread(void *threadParam);
  22. };
  23.  
  24.  
  25. class TSillyLoop : public FGEventLoop
  26. {
  27. public:
  28.     inline TSillyLoop(short mask = everyEvent) : FGEventLoop(mask) {}
  29.     virtual ~TSillyLoop();
  30.  
  31.     virtual bool HandleMenuSelection(long what);
  32.     
  33. private:
  34.     typedef FGEventLoop Inherited;
  35. };
  36.  
  37. #endif __SILLYBALLS__
  38.