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.

127 lines
3.4 KiB

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