recivemessage.cpp

来自「我为聊狂的聊天软件,又一款UDP聊天软件」· C++ 代码 · 共 70 行

CPP
70
字号
// ReciveMessage.cpp : implementation file
//

#include "stdafx.h"
#include "Client.h"
#include "ReciveMessage.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReciveMessage dialog


CReciveMessage::CReciveMessage(CWnd* pParent /*=NULL*/)
	: CDialog(CReciveMessage::IDD, pParent)
{
	//{{AFX_DATA_INIT(CReciveMessage)
	m_strPetName = _T("");
	m_strTime = _T("");
	m_strMessage = _T("");
	//}}AFX_DATA_INIT
}


void CReciveMessage::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CReciveMessage)
	DDX_Control(pDX, IDC_RECVICON, m_icon);
	DDX_Text(pDX, IDC_EDIT1, m_strPetName);
	DDX_Text(pDX, IDC_EDIT2, m_strTime);
	DDX_Text(pDX, IDC_MESSAGE, m_strMessage);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CReciveMessage, CDialog)
	//{{AFX_MSG_MAP(CReciveMessage)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CReciveMessage message handlers

void CReciveMessage::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(FALSE);

	CDialog::OnOK();
}

BOOL CReciveMessage::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	if( m_hIcon != NULL)
	{
		m_icon.SetIcon (m_hIcon);
	}

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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