• 大小: 58KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-05
  • 语言: C/C++
  • 标签:

资源简介

简易绘图软件 c语言,mfc 能实现橡皮经绘图,放大,缩放,拖放操作 可实现调色板工具 可实现参数画圆功能 qq:332311443

资源截图

代码片段和文件信息

// CircleView.cpp : 实现文件
//

#include “stdafx.h“
#include “EasyDraw.h“
#include “CircleView.h“


// CCircleView 对话框

IMPLEMENT_DYNAMIC(CCircleView CDialog)

CCircleView::CCircleView(CWnd* pParent /*=NULL*/)
: CDialog(CCircleView::IDD pParent)
 m_xc(0)
 m_yc(0)
 m_radius(0)
{

}

CCircleView::~CCircleView()
{
}

void CCircleView::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX IDC_XC m_xc);
DDV_MinMaxInt(pDX m_xc 10 10000);
DDX_Text(pDX IDC_YC m_yc);
DDV_MinMaxInt(pDX m_yc 10 10000);
DDX_Text(pDX IDC_RADIUS m_radius);
DDV_MinMaxInt(pDX m_radius 10 40000);
}


BEGIN_MESSAGE_MAP(CCircleView CDialog)
ON_COMMAND(ID_DRAW_INPUTPARA &CCircleView::OnDrawInputpara)
END_MESSAGE_MAP()


// CCircleView 消息处理程序

void CCircleView::OnDrawInputpara()
{
// TODO: 在此添加命令处理程序代码
CCircleView InpPara;
InpPara.m_xc = m_xc;//初始化对话框实例的成员变量
InpPara.m_yc = m_yc;
InpPara.m_radius = m_radius;
if(InpPara.DoModal() == IDOK)
{
m_xc = InpPara.m_xc;//通过对话框得到新的参数值
m_yc = InpPara.m_yc;
m_radius = InpPara.m_radius;
Invalidate(TRUE);//进行客户区重画
}

}


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

     文件       1224  2008-10-23 14:42  EasyDraw ####\EasyDraw\CircleView.cpp

     文件        508  2008-10-23 14:41  EasyDraw ####\EasyDraw\CircleView.h

     文件      61924  2008-11-05 17:34  EasyDraw ####\EasyDraw\EasyDraw.aps

     文件       3282  2008-10-21 12:16  EasyDraw ####\EasyDraw\EasyDraw.cpp

     文件        480  2008-10-21 12:16  EasyDraw ####\EasyDraw\EasyDraw.h

     文件      13853  2008-11-02 22:27  EasyDraw ####\EasyDraw\EasyDraw.rc

     文件       6267  2008-11-02 21:49  EasyDraw ####\EasyDraw\EasyDraw.vcproj

     文件       1427  2008-11-15 22:51  EasyDraw ####\EasyDraw\EasyDraw.vcproj.WWW-DEAE7F007EF.Administrator.user

     文件       1052  2008-10-21 12:16  EasyDraw ####\EasyDraw\EasyDrawDoc.cpp

     文件        558  2008-10-21 12:16  EasyDraw ####\EasyDraw\EasyDrawDoc.h

     文件      22001  2008-11-08 21:02  EasyDraw ####\EasyDraw\EasyDrawView.cpp

     文件       4002  2008-11-05 17:55  EasyDraw ####\EasyDraw\EasyDrawView.h

     文件        326  2008-10-22 21:47  EasyDraw ####\EasyDraw\IDC_CURSOR1.cur

     文件          0  2008-10-22 22:27  EasyDraw ####\EasyDraw\inputCircle.cpp

     文件          0  2008-10-22 22:27  EasyDraw ####\EasyDraw\inputCircle.h

     文件        753  2008-10-23 14:49  EasyDraw ####\EasyDraw\InputPara.cpp

     文件        428  2008-10-23 15:32  EasyDraw ####\EasyDraw\InputPara.h

     文件       1798  2008-10-21 12:16  EasyDraw ####\EasyDraw\MainFrm.cpp

     文件        655  2008-10-21 12:16  EasyDraw ####\EasyDraw\MainFrm.h

     文件       3454  2008-10-21 12:16  EasyDraw ####\EasyDraw\ReadMe.txt

     文件       2238  2008-11-02 21:55  EasyDraw ####\EasyDraw\res\circle.cur

     文件        326  2008-10-22 21:55  EasyDraw ####\EasyDraw\res\cursor1.cur

     文件      21630  2005-12-08 14:56  EasyDraw ####\EasyDraw\res\EasyDraw.ico

     文件        364  2008-10-21 12:16  EasyDraw ####\EasyDraw\res\EasyDraw.rc2

     文件       1078  2005-12-08 14:56  EasyDraw ####\EasyDraw\res\EasyDrawDoc.ico

     文件       2238  2008-11-02 21:53  EasyDraw ####\EasyDraw\res\pen.cur

     文件       2238  2008-11-02 21:53  EasyDraw ####\EasyDraw\res\rect.cur

     文件       2278  2008-11-02 22:27  EasyDraw ####\EasyDraw\res\Toolbar.bmp

     文件       3148  2008-11-02 22:27  EasyDraw ####\EasyDraw\resource.h

     文件        139  2008-10-21 12:16  EasyDraw ####\EasyDraw\stdafx.cpp

............此处省略9个文件信息

评论

共有 条评论

相关资源