addfriends.cpp

来自「本代码是基于LINUX系统下的」· C++ 代码 · 共 53 行

CPP
53
字号
// AddFriends.cpp : implementation file
//

#include "stdafx.h"
#include "Client.h"
#include "AddFriends.h"
#include "AnEn.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAddFriends dialog


CAddFriends::CAddFriends(CWnd* pParent /*=NULL*/)
	: CDialog(CAddFriends::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAddFriends)
	m_friendId = 0;
	//}}AFX_DATA_INIT
}


void CAddFriends::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAddFriends)
	DDX_Text(pDX, IDC_ADDFRIEND_ID, m_friendId);
	DDV_MinMaxInt(pDX, m_friendId, 0, 1000);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAddFriends, CDialog)
	//{{AFX_MSG_MAP(CAddFriends)
	ON_BN_CLICKED(IDOK, OnAddFriend)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAddFriends message handlers

void CAddFriends::OnAddFriend() 
{
	// TODO: Add your control notification handler code here
	UpdateData();
	CDialog::OnOK();
}

⌨️ 快捷键说明

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