📄 recivemessage.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -