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.

121 lines
3.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // LCPrPage.h
  7. //
  8. // Abstract:
  9. // Definition of the CListCtrlPairPage dialog class.
  10. //
  11. // Implementation File:
  12. // LCPrPage.cpp
  13. //
  14. // Author:
  15. // David Potter (davidp) August 12, 1996
  16. //
  17. // Revision History:
  18. //
  19. // Notes:
  20. //
  21. /////////////////////////////////////////////////////////////////////////////
  22. #ifndef _LCPRPAGE_H_
  23. #define _LCPRPAGE_H_
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Include Files
  26. /////////////////////////////////////////////////////////////////////////////
  27. #ifndef _BASEPAGE_H_
  28. #include "BasePPag.h" // for CBasePropertyPage
  29. #endif
  30. #ifndef _LCPAIR_H_
  31. #include "LCPair.h" // for PFNLCPGETCOLUMN, CListCtrlPair
  32. #endif
  33. /////////////////////////////////////////////////////////////////////////////
  34. // Forward Class Declarations
  35. /////////////////////////////////////////////////////////////////////////////
  36. class CListCtrlPairPage;
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CListCtrlPairPage dialog
  39. /////////////////////////////////////////////////////////////////////////////
  40. class CListCtrlPairPage : public CBasePropertyPage
  41. {
  42. DECLARE_DYNCREATE(CListCtrlPairPage)
  43. // Construction
  44. public:
  45. CListCtrlPairPage(void);
  46. CListCtrlPairPage(
  47. IN UINT idd,
  48. IN const DWORD * pdwHelpMap,
  49. IN DWORD dwStyle,
  50. IN PFNLCPGETCOLUMN pfnGetColumn,
  51. IN PFNLCPDISPPROPS pfnDisplayProps
  52. );
  53. ~CListCtrlPairPage(void);
  54. void CommonConstruct();
  55. // Attributes
  56. protected:
  57. CClusterItemList * m_plpobjRight;
  58. const CClusterItemList * m_plpobjLeft;
  59. DWORD m_dwStyle;
  60. PFNLCPGETCOLUMN m_pfnGetColumn;
  61. PFNLCPDISPPROPS m_pfnDisplayProps;
  62. BOOL BIsStyleSet(IN DWORD dwStyle) const { return (m_dwStyle & dwStyle) == dwStyle; }
  63. CListCtrlPair::CColumnArray m_aColumns;
  64. public:
  65. BOOL BOrdered(void) const { return BIsStyleSet(LCPS_ORDERED); }
  66. BOOL BCanBeOrdered(void) const { return BIsStyleSet(LCPS_CAN_BE_ORDERED); }
  67. int NAddColumn(IN IDS idsText, IN int nWidth);
  68. void SetLists(IN OUT CClusterItemList * plpobjRight, IN const CClusterItemList * plpobjLeft);
  69. void SetLists(IN const CClusterItemList * plpobjRight, IN const CClusterItemList * plpobjLeft);
  70. // Dialog Data
  71. //{{AFX_DATA(CListCtrlPairPage)
  72. enum { IDD = 0 };
  73. //}}AFX_DATA
  74. protected:
  75. CListCtrlPair * m_plcp;
  76. public:
  77. CListCtrlPair * Plcp(void) const { return m_plcp; }
  78. // Overrides
  79. // ClassWizard generated virtual function overrides
  80. //{{AFX_VIRTUAL(CListCtrlPairPage)
  81. public:
  82. virtual BOOL OnSetActive();
  83. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  84. protected:
  85. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  86. //}}AFX_VIRTUAL
  87. // Implementation
  88. protected:
  89. // Generated message map functions
  90. //{{AFX_MSG(CListCtrlPairPage)
  91. virtual BOOL OnInitDialog();
  92. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  93. //}}AFX_MSG
  94. DECLARE_MESSAGE_MAP()
  95. }; //*** class CListCtrlPairPage
  96. /////////////////////////////////////////////////////////////////////////////
  97. #endif // _LCPRPAGE_H_