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.

48 lines
1.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: CHatch.cpp
  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. #include "CHatch.h"
  14. #include "CFuncTest.h"
  15. extern CFuncTest g_FuncTest;
  16. CHatch::CHatch(BOOL bRegression)
  17. {
  18. strcpy(m_szName,"Hatch");
  19. m_bRegression=bRegression;
  20. }
  21. CHatch::~CHatch()
  22. {
  23. }
  24. void CHatch::Set(Graphics *g)
  25. {
  26. if (!m_bUseSetting)
  27. return;
  28. Color foreColor(50, 0 , 0, 0);
  29. Color backColor(128, 255, 255, 255);
  30. HatchBrush hatch(
  31. HatchStyleDiagonalCross,
  32. foreColor,
  33. backColor
  34. );
  35. g->FillRectangle(
  36. &hatch,
  37. 0, 0,
  38. (int)TESTAREAWIDTH,
  39. (int)TESTAREAHEIGHT
  40. );
  41. }