本文主要是介绍MFC GDI绘制卡通人物,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- 主要代码
- 完整visual studio工程下载
主要代码
// DrawFrogView.cpp : implementation of the CDrawFrogView class
//#include "stdafx.h"
#include "DrawFrog.h"#include "DrawFrogDoc.h"
#include "DrawFrogView.h"#include "math.h"
#define PI 3.14#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/
// CDrawFrogViewIMPLEMENT_DYNCREATE(CDrawFrogView, CView)BEGIN_MESSAGE_MAP(CDrawFrogView, CView)//{{AFX_MSG_MAP(CDrawFrogView)// NOTE - the ClassWizard will add and remove mapping macros here.// DO NOT EDIT what you see in these blocks of generated code!//}}AFX_MSG_MAP// Standard printing commandsON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()/
// CDrawFrogView construction/destructionCDrawFrogView::CDrawFrogView()
{// TODO: add construction code here
这篇关于MFC GDI绘制卡通人物的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!