entercombo.cpp

来自「网络游戏龙族服务器端管理工具 rmtool 源代码」· C++ 代码 · 共 51 行

CPP
51
字号
// EnterCombo.cpp : implementation file
//

#include "stdafx.h"
#include "rmtool.h"
#include "EnterCombo.h"
#include "CharacterView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEnterCombo

CEnterCombo::CEnterCombo()
{
}

CEnterCombo::~CEnterCombo()
{
}


BEGIN_MESSAGE_MAP(CEnterCombo, CComboBox)
	//{{AFX_MSG_MAP(CEnterCombo)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEnterCombo message handlers

BOOL CEnterCombo::PreTranslateMessage(MSG* pMsg) 
{
	// TODO: Add your specialized code here and/or call the base class
	if(pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
    {
		UpdateData();//020725

		CCharacterView *pView = (CCharacterView*)GetParent();
		::SendMessage(pView->m_hWnd, UM_COMBO_ENTER, 0, 0);
		//pView->OnComboEnter();
	}
	return CComboBox::PreTranslateMessage(pMsg);

}

⌨️ 快捷键说明

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