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.

55 lines
2.1 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: CFuncTest.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 __CFUNCTEST_H
  14. #define __CFUNCTEST_H
  15. #include "Global.h"
  16. #include "CPrimitive.h"
  17. #include "CSetting.h"
  18. #include "COutput.h"
  19. class CFuncTest
  20. {
  21. public:
  22. CFuncTest();
  23. ~CFuncTest();
  24. BOOL Init(HWND hWndParent); // Initializes functest
  25. void RunOptions(); // Toggles option dialog
  26. static INT_PTR CALLBACK DlgProc(HWND hWndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
  27. BOOL AddPrimitive(CPrimitive *pPrimitive); // Add a primitive to test list
  28. BOOL AddOutput(COutput *pOutput); // Add a graphics output to test list
  29. BOOL AddSetting(CSetting *pSetting); // Add a graphics setting to test list
  30. RECT GetTestRect(int nCol,int nRow); // Gets the test area located at nCol/nRow
  31. void RunTest(COutput *pOutput,CPrimitive *pPrimitive); // Runs a specific test on a specific output
  32. void InitRun(); // Must be called before running a series of tests
  33. void EndRun(); // Must be called after running a series of tests
  34. void Run(); // Run the selected tests
  35. void RunRegression(); // Run regression tests
  36. void ClearAllSettings(); // Sets all settings in the list box to m_bUseSetting=false
  37. HWND m_hWndMain; // Main window
  38. HWND m_hWndDlg; // Dialog window
  39. BOOL m_bUsePageDelay; // Use page delay or page pause
  40. BOOL m_bEraseBkgd; // Erase old test background
  41. BOOL m_bAppendTest; // Appends test to previous tests
  42. int m_nPageDelay; // Delay after each graphics page
  43. int m_nPageRow; // Row to draw next test
  44. int m_nPageCol; // Column to draw next test
  45. };
  46. #endif