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

📄 exampl~3.cpp

📁 vc++net很不错的一个工具
💻 CPP
字号:
// Example015View.cpp : CExample015View 类的实现
//
#include "stdafx.h"
#include "Example015.h"
#include "Example015Doc.h"
#include "Example015View.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CExample015View
IMPLEMENT_DYNCREATE(CExample015View, CView)
BEGIN_MESSAGE_MAP(CExample015View, CView)
END_MESSAGE_MAP()

// CExample015View 构造/销毁
CExample015View::CExample015View()
{
	// TODO: 在此处添加构造代码
}

CExample015View::~CExample015View()
{
}

BOOL CExample015View::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或
	// 样式
	return CView::PreCreateWindow(cs);
}

// CExample015View 绘制
void CExample015View::OnDraw(CDC* pDC)
{
	CExample015Doc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: 在此处为本机数据添加绘制代码
	using namespace Gdiplus;
	Graphics graphics(pDC->m_hDC);
	Image image(L"Test.bmp");
	graphics.DrawImage(&image, 0, 0,100,100);
	Point destinationPoints[] = {Point(100, 100),Point(150, 100),Point(180, 180)};  
	graphics.DrawImage(&image, destinationPoints,3);		
}

// CExample015View 诊断
#ifdef _DEBUG
CExample015Doc* CExample015View::GetDocument() const // 非调试版本是内联的
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CExample015Doc)));
	return (CExample015Doc*)m_pDocument;
}
#endif //_DEBUG

⌨️ 快捷键说明

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