home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Examples / DDraw / DDraw1A / MAIN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  1.3 KB  |  38 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef MainH
  3. #define MainH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Menus.hpp>
  10. #include <ExtCtrls.hpp>
  11. //---------------------------------------------------------------------------
  12. class TForm1 : public TForm
  13. {
  14. __published:
  15.         TTimer *Timer1;
  16.         void __fastcall FormDestroy(TObject *Sender);
  17.         void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
  18.         TShiftState Shift);
  19.         void __fastcall FormPaint(TObject *Sender);
  20.         
  21.         void __fastcall Timer1Timer(TObject *Sender);
  22. private:
  23.   LPDIRECTDRAW            lpDD;           // DirectDraw object
  24.   LPDIRECTDRAWSURFACE     lpDDSPrimary;   // DirectDraw primary surface
  25.   LPDIRECTDRAWSURFACE     lpDDSBack;      // DirectDraw back surface
  26.   BOOL                    bActive;        // is application active?
  27.   BYTE phase;
  28.   AnsiString FrontMsg;
  29.   AnsiString BackMsg;
  30.   void __fastcall Start();
  31. public:
  32.         __fastcall TForm1(TComponent* Owner);
  33. };
  34. //---------------------------------------------------------------------------
  35. extern TForm1 *Form1;
  36. //---------------------------------------------------------------------------
  37. #endif
  38.