#pragma once #include "afxcmn.h" #include "afxwin.h" // CConnectionDialog ´ëÈ­ »óÀÚÀÔ´Ï´Ù. class CConnectionDialog : public CDialog { DECLARE_DYNAMIC(CConnectionDialog) public: enum EF_UI_SIZE // UI Å©±â Á¤ÀÇ { EV_UIS_TITLELINE_1_PAD_LFT = 110, // Á¦¸ñ 1 ¿ÜºÎ °£°Ý ÁÂÃø EV_UIS_TITLELINE_1_PAD_TOP = 53, // Á¦¸ñ 1 ¿ÜºÎ °£°Ý »ó´Ü EV_UIS_TITLELINE_1_WTH = 170, // Á¦¸ñ 1 ³Êºñ EV_UIS_TITLELINE_1_HGT = 18, // Á¦¸ñ 1 ³ôÀÌ EV_UIS_TITLETEXT_1_PAD_X = 10, // Á¦¸ñ 1 ¿ÜºÎ °£°Ý X EV_UIS_TITLELINE_2_PAD_LFT = 110, // Á¦¸ñ 2 ¿ÜºÎ °£°Ý ÁÂÃø EV_UIS_TITLELINE_2_PAD_TOP = 77, // Á¦¸ñ 2 ¿ÜºÎ °£°Ý »ó´Ü EV_UIS_TITLELINE_2_WTH = 170, // Á¦¸ñ 2 ³Êºñ EV_UIS_TITLELINE_2_HGT = 18, // Á¦¸ñ 2 ³ôÀÌ EV_UIS_TITLETEXT_2_PAD_X = 10, // Á¦¸ñ 2 ¿ÜºÎ °£°Ý X }; public: CConnectionDialog(CWnd* pParent = NULL); // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù. virtual ~CConnectionDialog(); // ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù. enum { IDD = IDD_CNNTDLG }; public: void EnableButton(BOOL pIsConnect); CString GetID() const; CString GetPass() const; void SaveConfig(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Áö¿øÀÔ´Ï´Ù. DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void OnOK(); virtual void OnCancel(); public: afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg void OnDestroy(); afx_msg void OnBnClickedButtonConnect(); afx_msg void OnBnClickedButtonDisconnect(); afx_msg void OnBnClickedCnndlgCancel(); afx_msg void OnPaint(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); private: CIPAddressCtrl m_IpAddress; CEdit m_PortNo; CEdit m_ID; CEdit m_Pass; public: afx_msg void OnClose(); };