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.

124 lines
3.0 KiB

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