editbox.cpp

来自「用VC++编写的非常完整的绘图程序,界面设计优秀.非常有参考价值」· C++ 代码 · 共 46 行

CPP
46
字号
// EditBox.cpp : implementation file
//

#include "stdafx.h"
#include "eastdraw.h"
#include "EditBox.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEditBox dialog


CEditBox::CEditBox(CWnd* pParent /*=NULL*/)
	: CDialog(CEditBox::IDD, pParent)
{
	//{{AFX_DATA_INIT(CEditBox)
	//}}AFX_DATA_INIT
   m_RichEditCtrl.Create(
   WS_CHILD|WS_VISIBLE|WS_BORDER|ES_MULTILINE,
   CRect(10,10,100,200),this, 1);	
}


void CEditBox::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEditBox)
	DDX_Control(pDX, IDC_RICHEDIT2, m_RichEditCtrl);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CEditBox, CDialog)
	//{{AFX_MSG_MAP(CEditBox)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEditBox message handlers

⌨️ 快捷键说明

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