www.pudn.com > QQ2004_Source_0.01.rar > StartupDlg.h
#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_)