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.

97 lines
2.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. delowner.h
  7. Delete owner dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _DELOWNER_H
  11. #define _DELOWNER_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #ifndef _DIALOG_H
  16. #include "..\common\dialog.h"
  17. #endif
  18. #ifndef _LISTVIEW_H
  19. #include "listview.h"
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CDeleteOwner dialog
  23. class CDeleteOwner : public CBaseDialog
  24. {
  25. // Construction
  26. public:
  27. CDeleteOwner(ITFSNode * pNode, CWnd* pParent = NULL); // standard constructor
  28. // Dialog Data
  29. //{{AFX_DATA(CDeleteOwner)
  30. enum { IDD = IDD_OWNER_DELETE };
  31. CButton m_radioDelete;
  32. CListCtrlExt m_listOwner;
  33. //}}AFX_DATA
  34. int HandleSort(LPARAM lParam1, LPARAM lParam2);
  35. DWORD m_dwSelectedOwner;
  36. BOOL m_fDeleteRecords;
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CDeleteOwner)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. void FillOwnerInfo();
  46. DWORD GetSelectedOwner();
  47. CString GetVersionInfo(LONG lLowWord, LONG lHighWord);
  48. void Sort(int nCol);
  49. protected:
  50. CServerInfoArray m_ServerInfoArray;
  51. SPITFSNode m_spActRegNode;
  52. int m_nSortColumn;
  53. BOOL m_aSortOrder[COLUMN_MAX];
  54. // Generated message map functions
  55. //{{AFX_MSG(CDeleteOwner)
  56. virtual BOOL OnInitDialog();
  57. virtual void OnOK();
  58. afx_msg void OnItemchangedListOwner(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnColumnclickListOwner(NMHDR* pNMHDR, LRESULT* pResult);
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. public:
  63. ITFSNode* GetTFSNode()
  64. {
  65. if (m_spActRegNode)
  66. m_spActRegNode->AddRef();
  67. return m_spActRegNode;
  68. }
  69. public:
  70. virtual DWORD * GetHelpMap() { return WinsGetHelpMap(CDeleteOwner::IDD); }
  71. };
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  74. #endif _DELOWNER_H