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.

137 lines
3.5 KiB

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