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.

101 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. connects.h
  5. Abstract:
  6. "Connect to a single server" dialog definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. class ConnectServerDlg : public CDialog
  14. {
  15. /*++
  16. Class Description:
  17. Connect to a server dialog
  18. Public Interface:
  19. ConnectServerDlg : Constructor
  20. QueryServerName : Get the server name entered
  21. --*/
  22. //
  23. // Construction
  24. //
  25. public:
  26. ConnectServerDlg(
  27. IN CWnd * pParent = NULL
  28. );
  29. //
  30. // Access Functions
  31. //
  32. public:
  33. LPCTSTR QueryServerName() const;
  34. //
  35. // Dialog Data
  36. //
  37. protected:
  38. //{{AFX_DATA(ConnectServerDlg)
  39. enum { IDD = IDD_CONNECT_SERVER };
  40. CEdit m_edit_ServerName;
  41. CButton m_button_Ok;
  42. CString m_strServerName;
  43. //}}AFX_DATA
  44. //
  45. // Overrides
  46. //
  47. protected:
  48. // ClassWizard generated virtual function overrides
  49. //{{AFX_VIRTUAL(ConnectServerDlg)
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. //
  54. // Implementation
  55. //
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(ConnectServerDlg)
  59. afx_msg void OnChangeServername();
  60. afx_msg void OnHelp();
  61. virtual BOOL OnInitDialog();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. };
  65. //
  66. // Inline Expansion
  67. //
  68. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  69. inline LPCTSTR ConnectServerDlg::QueryServerName() const
  70. {
  71. return m_strServerName;
  72. }