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

资源简介

这个是模拟现实的电梯做出来。虽然不是很强大。但对于初学者绝对可以的了。

资源截图

代码片段和文件信息

// Explain.cpp: implementation of the CExplain class.
// Download by http://www.codefans.net
//////////////////////////////////////////////////////////////////////

#include “stdafx.h“
#include “WM_Lift.h“
#include “Explain.h“

#include “WM_LiftDoc.h“
#include “WM_LiftView.h“

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CExplain::CExplain()
{

}

CExplain::~CExplain()
{

}

void CExplain::OnTotle(CWM_LiftDoc *doc CWM_LiftView *view CDC *dc)
{
 CExplain::OnDraw(dc);
 CExplain::OnShowLawer(docdc);
}

void CExplain::OnDraw(CDC *dc)
{
 CPen pen(PS_SOLID4RGB(02550));
 dc->Selectobject(&pen);
 dc->MoveTo(38040);
 dc->LineTo(380580);
 int x=60;
 for(int i=0;i<=30;i++)
 {
  dc->MoveTo(380x);
  dc->LineTo(400x);
  x+=20;
 }
}

void CExplain::OnShowLawer(CWM_LiftDoc *doc CDC *dc)
{
 int num_n=50;
 TCHAR *a[9]={“九层““八层““七层““六层““五层““四层““三层““二层““一层“};
 for(int j=0;j<9;j++)
 {
 dc->Ellipse(CRect(500num_n540num_n+30));
 dc->DrawText(a[j]CRect(500num_n540num_n+30)DT_CENTER);
 num_n+=60;
 }
}

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

     文件       1322  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\Explain.cpp

     文件        684  2010-06-29 21:00  WWW.WEI2008.COM\WM_Lift\Explain.h

     文件       3659  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\LiftA.cpp

     文件        900  2010-06-29 19:45  WWW.WEI2008.COM\WM_Lift\LiftA.h

     文件       2762  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\LiftTotle.cpp

     文件        827  2010-06-29 11:35  WWW.WEI2008.COM\WM_Lift\LiftTotle.h

     文件       2668  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\MainFrm.cpp

     文件       1581  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\MainFrm.h

     文件       2449  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\Person.cpp

     文件        788  2010-06-29 15:12  WWW.WEI2008.COM\WM_Lift\Person.h

     文件       4335  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\ReadMe.txt

     文件       1078  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\res\Toolbar.bmp

     文件       1078  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\res\WM_Lift.ico

     文件        399  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\res\WM_Lift.rc2

     文件       1078  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\res\WM_LiftDoc.ico

     文件        495  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\Resource.h

     文件        209  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\StdAfx.cpp

     文件       1054  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\StdAfx.h

     文件      28444  2010-06-28 20:39  WWW.WEI2008.COM\WM_Lift\WM_Lift.aps

     文件       2241  2010-06-29 21:13  WWW.WEI2008.COM\WM_Lift\WM_Lift.clw

     文件       4227  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\WM_Lift.cpp

     文件       5075  2010-06-29 20:46  WWW.WEI2008.COM\WM_Lift\WM_Lift.dsp

     文件        539  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\WM_Lift.dsw

     文件       1367  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\WM_Lift.h

     文件      10566  2010-06-28 20:37  WWW.WEI2008.COM\WM_Lift\WM_Lift.rc

     文件       1932  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\WM_LiftDoc.cpp

     文件       1632  2010-06-29 16:33  WWW.WEI2008.COM\WM_Lift\WM_LiftDoc.h

     文件       5365  2010-07-12 14:07  WWW.WEI2008.COM\WM_Lift\WM_LiftView.cpp

     文件       1981  2010-06-28 21:24  WWW.WEI2008.COM\WM_Lift\WM_LiftView.h

     目录          0  2010-07-12 14:05  WWW.WEI2008.COM\WM_Lift\res

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

评论

共有 条评论