home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / GDIDEMO.ZIP / DEMOBASE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  817 b   |  32 lines

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