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.

134 lines
3.4 KiB

  1. //
  2. // Driver Verifier UI
  3. // Copyright (c) Microsoft Corporation, 1999-2001
  4. //
  5. //
  6. //
  7. // module: DiskPage.h
  8. // author: DMihai
  9. // created: 11/7/01
  10. //
  11. // Description:
  12. //
  13. #if !defined(AFX_DISKPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_)
  14. #define AFX_DISKPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif // _MSC_VER > 1000
  18. // DiskPage.h : header file
  19. //
  20. #include "VerfPage.h"
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CDiskListPage dialog
  23. class CDiskListPage : public CVerifierPropertyPage
  24. {
  25. DECLARE_DYNCREATE(CDiskListPage)
  26. public:
  27. //
  28. // Construction
  29. //
  30. CDiskListPage();
  31. ~CDiskListPage();
  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_PTR nItemData,
  43. CDiskData *pDiskData );
  44. BOOL GetNewVerifiedDisks();
  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. //{{AFX_DATA(CDiskListPage)
  70. enum { IDD = IDD_DISK_LIST_PAGE };
  71. CListCtrl m_DiskList;
  72. CStatic m_NextDescription;
  73. //}}AFX_DATA
  74. //
  75. // Overrides
  76. //
  77. //
  78. // All the property pages derived from this class should
  79. // provide these methods.
  80. //
  81. virtual ULONG GetDialogId() const { return IDD; }
  82. //
  83. // ClassWizard generated virtual function overrides
  84. //
  85. //{{AFX_VIRTUAL(CDiskListPage)
  86. public:
  87. virtual BOOL OnSetActive();
  88. virtual BOOL OnWizardFinish();
  89. protected:
  90. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  91. //}}AFX_VIRTUAL
  92. // Implementation
  93. protected:
  94. // Generated message map functions
  95. //{{AFX_MSG(CDiskListPage)
  96. virtual BOOL OnInitDialog();
  97. afx_msg void OnColumnclickDiskList(NMHDR* pNMHDR, LRESULT* pResult);
  98. afx_msg LONG OnHelp( WPARAM wParam, LPARAM lParam );
  99. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  100. //}}AFX_MSG
  101. DECLARE_MESSAGE_MAP()
  102. };
  103. //{{AFX_INSERT_LOCATION}}
  104. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  105. #endif // !defined(AFX_DISKPAGE_H__3D3D85C5_AC1B_4D20_8FF1_1D2EE9908ACC__INCLUDED_)