home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / MTHREAD.PAK / ARTY.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.0 KB  |  42 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1991, 1995 by Borland International, All Rights Reserved
  4. //
  5. // Multi-thread arty demo window object header
  6. //----------------------------------------------------------------------------
  7. #if !defined(ARTY_H)
  8. #define ARTY_H
  9.  
  10. #include "demobase.h"
  11.  
  12. class _EXPCLASS TList;
  13. class _EXPCLASS TStatic;
  14.  
  15. class TArtyWindow : public TBaseDemoWindow {
  16.   public:
  17.     TArtyWindow();
  18.    ~TArtyWindow();
  19.  
  20.   protected:
  21.     void    EvLButtonDown(uint modKeys, TPoint& point);
  22.     void    EvRButtonDown(uint modKeys, TPoint& point);
  23.     void    EvSize(uint, TSize& size);
  24.     void    Paint(TDC& dc, bool erase, TRect& rect);
  25.  
  26.   private:
  27.     TList*      List;
  28.     TList*      BigLineList;
  29.     TList*      IconicLineList;
  30.     int         TextHeight;
  31.     bool        Iconized;
  32.     bool        Paused;
  33.     TStatic*    StaticControl;
  34.  
  35.     void        ClockTick();
  36.  
  37.   DECLARE_RESPONSE_TABLE(TArtyWindow);
  38.   DECLARE_CASTABLE;
  39. };
  40.  
  41. #endif
  42.