StartupDlg.h
上传用户:hysujiao87
上传日期:2007-12-02
资源大小:156k
文件大小:2k
- #include "afxcmn.h"
- #if !defined(AFX_STARTUPDLG_H__FA4709D1_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_)
- #define AFX_STARTUPDLG_H__FA4709D1_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // StartupDlg.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CStartupDlg dialog
- class CStartupDlg : public CDialog
- {
- // Construction
- public:
- CStartupDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CStartupDlg)
- enum { IDD = IDD_STARTUP };
- CString _password;
- CString _userID;
- CIPAddressCtrl _IPCtrl;
- //}}AFX_DATA
- CString _nickname;
- CString _serverIP;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CStartupDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(CStartupDlg)
- afx_msg void OnBtnLogOn();
- afx_msg void OnBtnReg();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- CString getServerIPAddr(){
- CString IPAddr;
- BYTE field1, field2, field3, field4;
- _IPCtrl.GetAddress(field1, field2, field3, field4);
- IPAddr.Format("%d.%d.%d.%d", field1, field2, field3, field4);
- return IPAddr;
- }
- virtual BOOL OnInitDialog();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STARTUPDLG_H__FA4709D1_8CE4_11D6_9C0E_0080C8F72DA3__INCLUDED_)