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.

104 lines
2.8 KiB

  1. /** Microsoft Windows/NT **/
  2. /** Copyright(c) Microsoft Corporation, 1999 - 1999 **/
  3. /**********************************************************************/
  4. /*
  5. addserv.h
  6. The add server dialog
  7. FILE HISTORY:
  8. */
  9. #if !defined _ADDSERV_H
  10. #define _ADDSERV_H
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14. #ifndef _SERVBROW_H
  15. #include "servbrow.h"
  16. #endif
  17. #define ADD_SERVER_TIMER_ID 500
  18. typedef struct SelServer {
  19. CString strName;
  20. CString strIp;
  21. } SelectedServer;
  22. typedef CList<SelectedServer, SelectedServer> CSelectedServerList;
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CAddServer dialog
  25. class CAddServer : public CBaseDialog
  26. {
  27. // Construction
  28. public:
  29. CAddServer(CWnd* pParent = NULL); // standard constructor
  30. // Dialog Data
  31. //{{AFX_DATA(CAddServer)
  32. enum { IDD = IDD_ADD_SERVER };
  33. CButton m_radioAuthorizedServer;
  34. CButton m_buttonOk;
  35. CButton m_radioAnyServer;
  36. CEdit m_editServer;
  37. CButton m_buttonBrowse;
  38. CListCtrl m_listctrlServers;
  39. //}}AFX_DATA
  40. void SetServerList(CAuthServerList * pServerList) { m_pServerList = pServerList; }
  41. int HandleSort(LPARAM lParam1, LPARAM lParam2);
  42. void ResetSort();
  43. // Context Help Support
  44. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CAddServer::IDD); }
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CAddServer)
  48. protected:
  49. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  50. //}}AFX_VIRTUAL
  51. // Implementation
  52. protected:
  53. void FillListCtrl();
  54. void UpdateControls();
  55. void GetInfo();
  56. void CleanupTimer();
  57. void Sort(int nCol);
  58. // Generated message map functions
  59. //{{AFX_MSG(CAddServer)
  60. virtual BOOL OnInitDialog();
  61. virtual void OnOK();
  62. afx_msg void OnButtonBrowseServers();
  63. afx_msg void OnRadioAnyServer();
  64. afx_msg void OnRadioAuthorizedServers();
  65. virtual void OnCancel();
  66. afx_msg void OnChangeEditAddServerName();
  67. afx_msg void OnTimer(UINT nIDEvent);
  68. afx_msg void OnItemchangedListAuthorizedServers(NMHDR* pNMHDR, LRESULT* pResult);
  69. afx_msg void OnColumnclickListAuthorizedServers(NMHDR* pNMHDR, LRESULT* pResult);
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. public:
  73. CSelectedServerList m_lSelSrv;
  74. private:
  75. CAuthServerList * m_pServerList;
  76. int m_nSortColumn;
  77. BOOL m_aSortOrder[COLUMN_MAX];
  78. };
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_ADDSERV_H__B8909EC0_08BE_11D3_847A_00104BCA42CF__INCLUDED_)