资源简介

1.定义二维坐标系原点位于屏幕中心,x轴水平向右为正,y轴铅直向上为正。 以二维坐标系原点为圆心绘制半径为r的圆,将圆的n等分点使用直线彼此连接形成金刚石图案。 2.程序运行界面提供“文件”、“绘图”和“帮助”三个弹出菜单项。“文件”菜单提供“退出”子菜单项,用于退出应用程序;“绘图”菜单提供“金刚石”子菜单项,用于绘制金刚石图案;“帮助”菜单提供“关于”子菜单项,用于说明开发信息。 3.选择“金刚石”子菜单项,打开“输入参数”对话框,输入“等分点个数”和“圆的半径”。 在屏幕客户区中心绘制金刚石图案。

资源截图

代码片段和文件信息


// ChildFrm.cpp: CChildframe 类的实现
//

#include “stdafx.h“
#include “Exp1DrawDiamonds.h“

#include “ChildFrm.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CChildframe

IMPLEMENT_DYNCREATE(CChildframe CMDIChildWndEx)

BEGIN_MESSAGE_MAP(CChildframe CMDIChildWndEx)
END_MESSAGE_MAP()

// CChildframe 构造/析构

CChildframe::CChildframe()
{
// TODO: 在此添加成员初始化代码
}

CChildframe::~CChildframe()
{
}


BOOL CChildframe::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改 CREATESTRUCT cs 来修改窗口类或样式
if( !CMDIChildWndEx::PreCreateWindow(cs) )
return FALSE;

return TRUE;
}

// CChildframe 诊断

#ifdef _DEBUG
void CChildframe::AssertValid() const
{
CMDIChildWndEx::AssertValid();
}

void CChildframe::Dump(CDumpContext& dc) const
{
CMDIChildWndEx::Dump(dc);
}
#endif //_DEBUG

// CChildframe 消息处理程序

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

    ..A..H.     36352  2020-04-16 14:46  Exp1DrawDiamonds\.vs\Exp1DrawDiamonds\v15\.suo

     文件   77680640  2020-04-16 14:37  Exp1DrawDiamonds\.vs\Exp1DrawDiamonds\v15\Browse.VC.db

    ..A..H.        40  2020-04-16 14:40  Exp1DrawDiamonds\.vs\Exp1DrawDiamonds\v15\Browse.VC.opendb

     文件  115212288  2020-04-16 14:44  Exp1DrawDiamonds\.vs\Exp1DrawDiamonds\v15\ipch\b86662a60d74103b.ipch

     文件     436224  2020-04-16 14:46  Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.exe

     文件    3775392  2020-04-16 14:46  Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.ilk

     文件    3862528  2020-04-16 14:46  Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.pdb

     文件       1714  2020-04-16 13:14  Exp1DrawDiamonds\Exp1DrawDiamonds\ChildFrm.cpp

     文件       1012  2020-04-16 13:14  Exp1DrawDiamonds\Exp1DrawDiamonds\ChildFrm.h

     文件       1332  2020-04-16 14:04  Exp1DrawDiamonds\Exp1DrawDiamonds\CInputDlg.cpp

     文件        824  2020-04-16 14:04  Exp1DrawDiamonds\Exp1DrawDiamonds\CInputDlg.h

     文件      17806  2020-04-16 13:14  Exp1DrawDiamonds\Exp1DrawDiamonds\ClassView.cpp

     文件       2548  2020-04-16 13:14  Exp1DrawDiamonds\Exp1DrawDiamonds\ClassView.h

     文件        201  2020-04-16 13:59  Exp1DrawDiamonds\Exp1DrawDiamonds\CMyPoint.cpp

     文件        142  2020-04-16 13:59  Exp1DrawDiamonds\Exp1DrawDiamonds\CMyPoint.h

     文件      37602  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\ChildFrm.obj

     文件      26248  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\CInputDlg.obj

     文件     231175  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\ClassView.obj

     文件       7513  2020-04-16 14:04  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\CMyPoint.obj

     文件        461  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.log

     文件      69801  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.obj

     文件   54001664  2020-04-16 14:04  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.pch

     文件     122480  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.res

     文件      11040  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\CL.command.1.tlog

     文件      85096  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\CL.read.1.tlog

     文件       9862  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\CL.write.1.tlog

     文件        203  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\Exp1DrawDiamonds.lastbuildstate

     文件       3470  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\link.command.1.tlog

     文件       8260  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\link.read.1.tlog

     文件       2222  2020-04-16 14:46  Exp1DrawDiamonds\Exp1DrawDiamonds\Debug\Exp1DrawDiamonds.tlog\link.write.1.tlog

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

评论

共有 条评论