Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
879 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: CPrimitive.h
  3. *
  4. * This file contains the code to support the functionality test harness
  5. * for GDI+. This includes menu options and calling the appropriate
  6. * functions for execution.
  7. *
  8. * Created: 05-May-2000 - Jeff Vezina [t-jfvez]
  9. *
  10. * Copyright (c) 2000 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #ifndef __CPRIMITIVE_H
  14. #define __CPRIMITIVE_H
  15. #include "Global.h"
  16. class CPrimitive
  17. {
  18. public:
  19. CPrimitive();
  20. virtual ~CPrimitive();
  21. virtual BOOL Init();
  22. virtual void Draw(Graphics *g)=0;
  23. void SetOffset(int x, int y)
  24. {
  25. m_ix = x;
  26. m_iy = y;
  27. }
  28. char m_szName[256];
  29. BOOL m_bRegression;
  30. // Offset for this test.
  31. INT m_ix;
  32. INT m_iy;
  33. };
  34. #endif