• 大小: 37KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: C/C++
  • 标签: openGL  画图板  画图  C++  

资源简介

用C++实现基于openGL的画图板,实现简单画图功能

资源截图

代码片段和文件信息

// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “painter.h“

#include “MainFrm.h“

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

/////////////////////////////////////////////////////////////////////////////
// CMainframe

IMPLEMENT_DYNCREATE(CMainframe CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
ON_WM_CREATE()
ON_COMMAND(ID_CERT OnCert)
ON_COMMAND(ID_CIRCLE OnCircle)
ON_COMMAND(ID_ERISE OnErise)
ON_COMMAND(ID_PEBCIL OnPebcil)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

static UINT indicators[] =
{
ID_SEPARATOR           // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};

///////////////

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2968  2012-10-09 22:25  painter\MainFrm.cpp

     文件       1609  2012-10-09 22:25  painter\MainFrm.h

     文件      44384  2012-10-09 21:54  painter\painter.aps

     文件       2415  2012-10-10 01:12  painter\painter.clw

     文件       4227  2012-10-09 21:36  painter\painter.cpp

     文件       4576  2012-10-09 21:36  painter\painter.dsp

     文件        537  2012-10-09 23:26  painter\painter.dsw

     文件       1367  2012-10-09 21:36  painter\painter.h

     文件      66560  2012-10-10 01:12  painter\painter.ncb

     文件      50688  2012-10-10 01:12  painter\painter.opt

     文件       1127  2012-10-10 01:12  painter\painter.plg

     文件      11747  2012-10-09 21:54  painter\painter.rc

     文件       1762  2012-10-09 21:36  painter\painterDoc.cpp

     文件       1486  2012-10-09 21:36  painter\painterDoc.h

     文件       5704  2012-10-10 01:12  painter\painterView.cpp

     文件       2107  2012-10-10 00:17  painter\painterView.h

     文件       4335  2012-10-09 21:36  painter\ReadMe.txt

     文件       1078  2012-10-09 21:36  painter\res\painter.ico

     文件        399  2012-10-09 21:36  painter\res\painter.rc2

     文件       1078  2012-10-09 21:36  painter\res\painterDoc.ico

     文件       1558  2012-10-09 21:54  painter\res\Toolbar.bmp

     文件        782  2012-10-09 21:54  painter\resource.h

     文件        209  2012-10-09 21:36  painter\StdAfx.cpp

     文件       1054  2012-10-09 21:36  painter\StdAfx.h

     目录          0  2012-10-09 21:54  painter\res

     目录          0  2012-10-10 01:14  painter

----------- ---------  ---------- -----  ----

               213757                    26


评论

共有 条评论