#pragma once #include "afxcmn.h" #include "afxwin.h" // CAddNodeDlg dialog class CAddNodeDlg : public CDialogEx { DECLARE_DYNAMIC(CAddNodeDlg) public: CAddNodeDlg(CWnd* pParent = NULL); // standard constructor virtual ~CAddNodeDlg(); // Dialog Data enum { IDD = IDD_DIALOG_NODE_ADD }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support DECLARE_MESSAGE_MAP() private: CEdit m_editName; CStatic m_staticIP; CStatic m_staticHostName; public: virtual BOOL OnInitDialog(); CString GetIP() const; CString GetHostName() const; CToolTipCtrl* m_pToolTipCtrl; virtual BOOL PreTranslateMessage(MSG* pMsg); private: CEdit m_editIP; CString m_strIP; CString m_strHostName; public: afx_msg void OnEnChangeEditIp(); afx_msg void OnEnChangeEditHostName(); };