Source code of Windows XP (NT5)
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.

99 lines
2.6 KiB

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