login.cpp

来自「一个基于vc++的c/s架构的网络教学答疑系统。我的软件工程上机报告。」· C++ 代码 · 共 56 行

CPP
56
字号
// Login.cpp : implementation file
//

#include "stdafx.h"
#include "chatclient.h"
#include "Login.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLogin dialog


CLogin::CLogin(CWnd* pParent /*=NULL*/)
	: CDialog(CLogin::IDD, pParent)
{
	//{{AFX_DATA_INIT(CLogin)
	m_strImage = _T("6");
	m_strName = _T("王大伟");
	m_strServerIP = _T("127.0.0.1");
	m_strMajor = _T("1 硬件");
	m_strType = _T("1 硬件论坛");
	//}}AFX_DATA_INIT
}


void CLogin::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLogin)
	DDX_CBString(pDX, IDC_IMAGE, m_strImage);
	DDX_CBString(pDX, IDC_NAME, m_strName);
	DDX_Text(pDX, IDC_SERVER, m_strServerIP);
	DDX_CBString(pDX, IDC_MAJOR, m_strMajor);
	DDX_CBString(pDX, IDC_LOGINTYPE, m_strType);
	//}}AFX_DATA_MAP
	int i = m_strName.GetLength();
	int j = i / 2;
	if (i != j * 2)
		m_strName += " ";
}


BEGIN_MESSAGE_MAP(CLogin, CDialog)
	//{{AFX_MSG_MAP(CLogin)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLogin message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?