home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 8.ddi / SCRNSAVE.ZIP / TSCRNSAV.H < prev   
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.5 KB  |  58 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2. //
  3. // tscrnsav.h
  4.  
  5. #ifndef  __TSCRNSAV_H
  6. #define  __TSCRNSAV_H
  7.  
  8. #ifndef  __OWL_H
  9. #include <owl.h>
  10. #endif
  11.  
  12. #define  WM_SAVESCREEN   ( WM_USER + 500 )
  13.  
  14.  
  15. _CLASSDEF( TScrnSavWindow )
  16. class TScrnSavWindow : public TWindow
  17. {
  18.         POINT   prevPt;
  19.     public:
  20.         TScrnSavWindow( PTWindowsObject AParent, LPSTR ATitle,
  21.                         PTModule AModule = NULL );
  22.        ~TScrnSavWindow();
  23.         virtual LPSTR GetClassName(){ return "_OWLScreenSaverClass"; }
  24.         virtual void GetWindowClass( WNDCLASS & AWndClass );
  25.         virtual void SetupWindow( void );
  26.         virtual void DefWndProc( RTMessage );
  27.         virtual void WMSysCommand( RTMessage ) = [ WM_FIRST + WM_SYSCOMMAND ];
  28.         virtual void AnimateScreen();
  29. };
  30.  
  31.  
  32.  
  33.  
  34.  
  35. _CLASSDEF( TScrnSavApp )
  36. class TScrnSavApp : public TApplication
  37. {
  38.     private:
  39.         virtual void InitMainWindow();
  40.     protected:
  41.         BOOL     fConfigureFlag;
  42.         PTDialog pConfigureDialog;
  43.         PTScrnSavWindow pScrnSavWnd;
  44.     public:
  45.         TScrnSavApp( LPSTR AName, HINSTANCE AnInstance,
  46.                      HINSTANCE APrevInstance,
  47.                      LPSTR ACmdLine, int ACmdShow ) :
  48.         TApplication( AName, AnInstance, APrevInstance, ACmdLine, ACmdShow )
  49.         {
  50.             pScrnSavWnd = NULL;
  51.             pConfigureDialog = NULL;
  52.         }
  53.         virtual void IdleAction();
  54.         virtual void InitScrnSavWindow();
  55.         virtual void InitConfigDialog(){};
  56. };
  57. #endif // __TSCRNSAV_H
  58.