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

📄 xpedit.cpp

📁 快速排序算法。生成10个随机数
💻 CPP
字号:
// XpEdit.cpp : implementation file
//

#include "stdafx.h"

#include "XpEdit.h"

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

/////////////////////////////////////////////////////////////////////////////
// CXpEdit

CXpEdit::CXpEdit()
{
}

CXpEdit::~CXpEdit()
{
}


BEGIN_MESSAGE_MAP(CXpEdit, CEdit)
	//{{AFX_MSG_MAP(CXpEdit)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CXpEdit message handlers

void CXpEdit::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	CRect rect;
	GetWindowRect(rect);
	rect.left += 1;
	rect.right -= 1;
	rect.top += 1;
	rect.bottom -= 1;

	ScreenToClient(rect);
	dc.Draw3dRect(rect, RGB(0, 0, 255), RGB(0, 0, 255));
	Invalidate();
	Default();
}

⌨️ 快捷键说明

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