Source code of Windows XP (NT5)
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.

141 lines
3.4 KiB

  1. //
  2. // Driver Verifier UI
  3. // Copyright (c) Microsoft Corporation, 1999
  4. //
  5. //
  6. //
  7. // module: FLPage.h
  8. // author: DMihai
  9. // created: 11/1/00
  10. //
  11. // Description:
  12. //
  13. #if !defined(AFX_FLPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_)
  14. #define AFX_FLPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. // FLPage.h : header file
  19. //
  20. #include "VerfPage.h"
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CFullListSettingsPage dialog
  23. class CFullListSettingsPage : public CVerifierPropertyPage
  24. {
  25. DECLARE_DYNCREATE(CFullListSettingsPage)
  26. public:
  27. //
  28. // Construction
  29. //
  30. CFullListSettingsPage();
  31. ~CFullListSettingsPage();
  32. //
  33. // Methods
  34. //
  35. VOID SetParentSheet( CPropertySheet *pParentSheet )
  36. {
  37. m_pParentSheet = pParentSheet;
  38. ASSERT( m_pParentSheet != NULL );
  39. }
  40. VOID SetupListHeader();
  41. VOID FillTheList();
  42. VOID AddListItem( INT nItemData,
  43. ULONG uIdResourceString );
  44. BOOL GetNewVerifierFlags();
  45. BOOL GetCheckFromItemData( INT nItemData );
  46. BOOL GetBitNameFromItemData( LPARAM lParam,
  47. TCHAR *szName,
  48. ULONG uNameBufferLength );
  49. VOID SortTheList();
  50. BOOL GetColumnStrValue( LPARAM lItemData,
  51. CString &strName );
  52. static int CALLBACK StringCmpFunc( LPARAM lParam1,
  53. LPARAM lParam2,
  54. LPARAM lParamSort);
  55. static int CALLBACK CheckedStatusCmpFunc( LPARAM lParam1,
  56. LPARAM lParam2,
  57. LPARAM lParamSort);
  58. protected:
  59. //
  60. // Data
  61. //
  62. CPropertySheet *m_pParentSheet;
  63. INT m_nSortColumnIndex; // selected status (0) or settings name (1)
  64. BOOL m_bAscendSortSelected; // sort ascendent the selected status
  65. BOOL m_bAscendSortName; // sort ascendent the settings name
  66. //
  67. // Dialog Data
  68. //
  69. BOOL m_bSPool;
  70. BOOL m_bPoolTrack;
  71. BOOL m_bIrqLevel;
  72. BOOL m_bIoVerif;
  73. BOOL m_bEnhIoVerif;
  74. BOOL m_bDeadlock;
  75. BOOL m_bDMA;
  76. BOOL m_bLowRes;
  77. //{{AFX_DATA(CFullListSettingsPage)
  78. enum { IDD = IDD_FULL_LIST_SETT_PAGE };
  79. CListCtrl m_SettingsList;
  80. CStatic m_NextDescription;
  81. //}}AFX_DATA
  82. //
  83. // Overrides
  84. //
  85. //
  86. // All the property pages derived from this class should
  87. // provide these methods.
  88. //
  89. virtual ULONG GetDialogId() const { return IDD; }
  90. //
  91. // ClassWizard generated virtual function overrides
  92. //
  93. //{{AFX_VIRTUAL(CFullListSettingsPage)
  94. public:
  95. virtual LRESULT OnWizardNext();
  96. protected:
  97. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  98. //}}AFX_VIRTUAL
  99. // Implementation
  100. protected:
  101. // Generated message map functions
  102. //{{AFX_MSG(CFullListSettingsPage)
  103. virtual BOOL OnInitDialog();
  104. afx_msg void OnColumnclickFlsettList(NMHDR* pNMHDR, LRESULT* pResult);
  105. afx_msg LONG OnHelp( WPARAM wParam, LPARAM lParam );
  106. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  107. //}}AFX_MSG
  108. DECLARE_MESSAGE_MAP()
  109. };
  110. //{{AFX_INSERT_LOCATION}}
  111. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  112. #endif // !defined(AFX_FLPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_)