• 大小: 2.29MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-27
  • 语言: C/C++
  • 标签: visual  c++  6.0  

资源简介

计算机图形学 visual c++ 6.0 实时动画(有注释).zip

资源截图

代码片段和文件信息

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

#include “stdafx.h“
#include “实时动画.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)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

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

/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction

CMainframe::CMainframe()
{
// TODO: add member initialization code here

}

CMainframe::~CMainframe()
{
}

int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1;      // fail to create
}

// TODO: Delete these three lines if you don‘t want the toolbar to
//  be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

return 0;
}

BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
//  the CREATESTRUCT cs

return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics

#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}

void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-01-21 21:22  实时动画\
     目录           0  2012-01-21 21:22  实时动画\Debug\
     文件       20115  2004-11-11 12:01  实时动画\Debug\MainFrm.obj
     文件        9159  2004-11-11 12:01  实时动画\Debug\Sphere.obj
     文件      105885  2004-11-11 12:01  实时动画\Debug\StdAfx.obj
     文件      222208  2004-11-11 22:13  实时动画\Debug\vc60.idb
     文件      364544  2004-11-11 22:13  实时动画\Debug\vc60.pdb
     文件      122958  2004-11-11 22:13  实时动画\Debug\实时动画.exe
     文件      327256  2004-11-11 22:13  实时动画\Debug\实时动画.ilk
     文件       23091  2004-11-11 12:02  实时动画\Debug\实时动画.obj
     文件     5495324  2004-11-11 12:01  实时动画\Debug\实时动画.pch
     文件      443392  2004-11-11 22:13  实时动画\Debug\实时动画.pdb
     文件        6760  2004-11-11 21:29  实时动画\Debug\实时动画.res
     文件       14757  2004-11-11 12:01  实时动画\Debug\实时动画Doc.obj
     文件       27125  2004-11-11 22:13  实时动画\Debug\实时动画View.obj
     文件        2509  2004-11-11 11:02  实时动画\MainFrm.cpp
     文件        1581  2004-11-11 11:02  实时动画\MainFrm.h
     文件        4317  2004-11-11 11:02  实时动画\ReadMe.txt
     目录           0  2012-01-21 21:22  实时动画\res\
     文件         642  2004-11-11 11:34  实时动画\Resource.h
     文件        1078  2004-11-11 11:02  实时动画\res\Toolbar.bmp
     文件        1078  2004-11-11 11:02  实时动画\res\实时动画.ico
     文件         400  2004-11-11 11:02  实时动画\res\实时动画.rc2
     文件        1078  2004-11-11 11:02  实时动画\res\实时动画Doc.ico
     文件        3049  2004-11-11 11:49  实时动画\Sphere.cpp
     文件         563  2004-11-11 11:47  实时动画\Sphere.h
     文件         210  2004-11-11 11:02  实时动画\StdAfx.cpp
     文件        1054  2004-11-11 11:02  实时动画\StdAfx.h
     文件       43316  2004-11-11 21:29  实时动画\实时动画.aps
     文件        1898  2004-12-16 16:45  实时动画\实时动画.clw
     文件        4161  2004-11-11 11:02  实时动画\实时动画.cpp
............此处省略11个文件信息

评论

共有 条评论