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.

94 lines
2.2 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1997 **/
  4. /**********************************************************************/
  5. /*
  6. column.h
  7. Column chooser.
  8. FILE HISTORY:
  9. */
  10. #ifndef _COLDLG_H
  11. #define _COLDLG_H
  12. #ifndef _DIALOG_H
  13. #include "dialog.h"
  14. #endif
  15. #ifndef _LISTCTRL_H
  16. #include "listctrl.h"
  17. #endif
  18. #ifndef _XSTREAM_H
  19. #include "xstream.h"
  20. #endif
  21. #ifndef _COLUMN_H
  22. #include "column.h" // need ContainerColumnInfo
  23. #endif
  24. //----------------------------------------------------------------------------
  25. // Class: ColumnDlg
  26. //
  27. // This dialog displays all the rows for available for a list-control,
  28. // allowing the user to select which ones should be displayed.
  29. //----------------------------------------------------------------------------
  30. class ColumnDlg : public CBaseDialog
  31. {
  32. public:
  33. ColumnDlg(CWnd *pParent);
  34. void Init(const ContainerColumnInfo *prgColInfo, UINT cColumns,
  35. ColumnData *prgColumnData);
  36. ~ColumnDlg( );
  37. //{{AFX_DATA(ColumnDlg)
  38. CListBox m_lboxDisplayed;
  39. CListBox m_lboxHidden;
  40. //}}AFX_DATA
  41. //{{AFX_VIRTUAL(ColumnDlg)
  42. protected:
  43. virtual VOID DoDataExchange(CDataExchange* pDX);
  44. //}}AFX_VIRTUAL
  45. protected:
  46. virtual DWORD * GetHelpMap() { return m_dwHelpMap; }
  47. static DWORD m_dwHelpMap[];
  48. const ContainerColumnInfo * m_pColumnInfo;
  49. UINT m_cColumnInfo;
  50. ColumnData * m_pColumnData;
  51. VOID MoveItem( INT dir );
  52. BOOL AddColumnsToList();
  53. static INT CALLBACK
  54. ColumnCmp(
  55. LPARAM lParam1,
  56. LPARAM lParam2,
  57. LPARAM lParamSort );
  58. //{{AFX_MSG(ColumnDlg)
  59. virtual BOOL OnInitDialog( );
  60. virtual VOID OnOK();
  61. afx_msg VOID OnUseDefaults();
  62. afx_msg VOID OnMoveUp();
  63. afx_msg VOID OnMoveDown();
  64. afx_msg VOID OnAddColumn();
  65. afx_msg VOID OnRemoveColumn();
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. #endif _COLDLG_H