text.cpp

来自「计算器源代码」· C++ 代码 · 共 49 行

CPP
49
字号
// Text.cpp : implementation file
//

#include "stdafx.h"
#include "计算器.h"
#include "Text.h"

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

/////////////////////////////////////////////////////////////////////////////
// CText

CText::CText()
{
}

CText::~CText()
{
}


BEGIN_MESSAGE_MAP(CText, CEdit)
	//{{AFX_MSG_MAP(CText)
	ON_WM_SETFOCUS()
	ON_WM_CONTEXTMENU()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CText message handlers

void CText::OnSetFocus(CWnd* pOldWnd) 
{
	// TODO: Add your message handler code here
	MessageBox("1");
	return;
}

void CText::OnContextMenu(CWnd* pWnd, CPoint point) 
{
	// TODO: Add your message handler code here
	MessageBox("2");
	return;
}

⌨️ 快捷键说明

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