#pragma once #include "afxwin.h" // CAddRemoteHostDlg dialog class CAddRemoteHostDlg : public CDialogEx { DECLARE_DYNAMIC(CAddRemoteHostDlg) public: CAddRemoteHostDlg(CWnd* pParent = NULL); // standard constructor virtual ~CAddRemoteHostDlg(); // Dialog Data enum { IDD = IDD_DIALOG_REMOTEHOST_ADD }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support DECLARE_MESSAGE_MAP() private: CStatic m_staticIP; CStatic m_staticHostName; CStatic m_staticUser; CStatic m_staticPassword; CString m_strIP; CString m_strHostName; CString m_strUserName; CString m_strPassword; CToolTipCtrl* m_pToolTipCtrl; public: virtual BOOL PreTranslateMessage(MSG* pMsg); virtual BOOL OnInitDialog(); CString GetIP() const; CString GetUserName() const; CString GetHostName() const; CString GetPassword() const; afx_msg void OnEnChangeEditHostIp(); afx_msg void OnEnChangeEditHostName(); afx_msg void OnEnChangeEditUserName(); afx_msg void OnEnChangeEditPassword(); };