资源简介
计算机图形学 三维一点透视算法 基于vc++6.0
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Test.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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2505 2006-11-30 11:00 透视图算法\MainFrm.cpp
文件 1581 2006-11-30 11:00 透视图算法\MainFrm.h
文件 4263 2006-11-30 11:00 透视图算法\ReadMe.txt
文件 766 2007-08-17 19:55 透视图算法\res\1.ico
文件 766 2007-08-17 19:55 透视图算法\res\2.ico
文件 766 2007-08-17 19:55 透视图算法\res\3.ico
文件 68578 2012-04-26 16:08 透视图算法\res\about.bmp
文件 10134 2006-11-30 11:06 透视图算法\res\app.ico
文件 4710 2006-11-30 11:06 透视图算法\res\exit.ico
文件 3638 2012-04-26 16:08 透视图算法\res\Help.ico
文件 1078 2006-12-01 08:47 透视图算法\res\Test.ico
文件 396 2006-11-30 11:00 透视图算法\res\Test.rc2
文件 1078 2006-11-30 11:00 透视图算法\res\TestDoc.ico
..A.SH. 25600 2012-04-26 16:08 透视图算法\res\Thumbs.db
文件 2678 2007-08-17 19:55 透视图算法\res\Toolbar.bmp
文件 1186 2012-04-26 16:08 透视图算法\resource.h
文件 206 2006-11-30 11:00 透视图算法\StdAfx.cpp
文件 1054 2006-11-30 11:00 透视图算法\StdAfx.h
文件 121516 2012-05-02 10:35 透视图算法\Test.aps
文件 1794 2012-05-02 10:35 透视图算法\Test.clw
文件 4215 2012-05-02 10:35 透视图算法\Test.cpp
文件 5025 2012-04-26 16:08 透视图算法\Test.dsp
文件 531 2006-11-30 11:08 透视图算法\Test.dsw
文件 1334 2006-11-30 11:00 透视图算法\Test.h
文件 304128 2012-05-02 10:35 透视图算法\Test.ncb
文件 51712 2012-05-02 10:35 透视图算法\Test.opt
文件 2202 2012-05-02 10:35 透视图算法\Test.plg
文件 11156 2012-04-26 16:08 透视图算法\Test.rc
文件 1702 2006-11-30 11:00 透视图算法\TestDoc.cpp
文件 1453 2006-11-30 11:00 透视图算法\TestDoc.h
............此处省略7个文件信息
- 上一篇:MFC71D.dll
- 下一篇:SNAPHU相位解缠
评论
共有 条评论