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

  1. //---------------------------------------------------------------------------
  2. //Borland C++Builder
  3. //Copyright (c) 1987, 1998 Borland International Inc. All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef DDCustomPaletteH
  7. #define DDCustomPaletteH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include "ddraw.h"
  14. //---------------------------------------------------------------------------
  15. class TForm1 : public TForm
  16. {
  17. __published:    // IDE-managed Components
  18.     void __fastcall FormPaint(TObject *Sender);
  19.         void __fastcall FormKeyDown(TObject *Sender, WORD &Key,
  20.           TShiftState Shift);
  21. private:    // User declarations
  22. public:        // User declarations
  23.     __fastcall TForm1(TComponent* Owner);
  24.     void __fastcall InitializeDirectDraw();
  25.     void __fastcall SetupPrimarySurface();
  26.     void __fastcall ShowPalette();
  27.     int ddColors, ddWidth, ddHeight;
  28.     IDirectDraw *DirectDraw;
  29.     IDirectDrawSurface *PrimarySurface;
  30. };
  31. //---------------------------------------------------------------------------
  32. extern PACKAGE TForm1 *Form1;
  33. //---------------------------------------------------------------------------
  34. #endif
  35.