home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / GDIDEMO.PAK / DEMOBASE.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  814b  |  26 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
  3. // Base window classes for the GDI demo windows
  4. //----------------------------------------------------------------------------
  5. #ifndef __DEMOBASE_H
  6. #define __DEMOBASE_H
  7.  
  8. #include <owl\mdichild.h>
  9.  
  10. #define max(a,b)    (((a) > (b)) ? (a) : (b))
  11. #define min(a,b)    (((a) < (b)) ? (a) : (b))
  12.  
  13. class TBaseDemoWindow : public TWindow  {
  14.   public:
  15.     TBaseDemoWindow() : TWindow(0, 0, 0) {}
  16.  
  17.     virtual void TimerTick() {}
  18.     
  19.   DECLARE_CASTABLE;
  20. };
  21.  
  22. // TBaseDemoWindow.TimerTick is a trivial method that gets called
  23. //  whenever application receives a EvTimer.  Descendants will override
  24. //  this procedure if they need timer messages.
  25. #endif
  26.