⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dlgchatting.cpp

📁 一个类似与浩方的战网平台源代码
💻 CPP
字号:
// DlgChatting.cpp : implementation file
//

#include "stdafx.h"
#include "LinKGameEx.h"
#include "DlgChatting.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgChatting dialog


CDlgChatting::CDlgChatting(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgChatting::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgChatting)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CDlgChatting::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgChatting)
	DDX_Control(pDX, IDC_CHATLIST, m_ChatList);
	DDX_Control(pDX, IDC_CHATEDIT, m_ChatEdit);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CDlgChatting message handlers

void CDlgChatting::OnCancel() 
{
	// TODO: Add extra cleanup here
	if(this->m_hWnd != NULL) this->DestroyWindow();
	//CDialog::OnCancel();
}

void CDlgChatting::OnOK() 
{
	// TODO: Add extra validation here
	if( 0 == this->m_ChatEdit.GetWindowTextLength())
	{
		MessageBox( _T(LINKFAYANALERT), _T(LINKFAYANTISHI), MB_OK);
		return;
	}
	CString m_str;
	this->m_ChatEdit.GetWindowText( m_str);
	this->m_ChatList.AddString( m_str);
	this->m_ChatEdit.SetWindowText( "");
	this->m_ChatEdit.SetFocus();
}

⌨️ 快捷键说明

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