资源简介
用中点算法画椭圆,计算机图形学作业,用vc++6.0完成
代码片段和文件信息
// ellipse_test.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ellipse_test.h“
#include “MainFrm.h“
#include “ellipse_testDoc.h“
#include “ellipse_testView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp
BEGIN_MESSAGE_MAP(CEllipse_testApp CWinApp)
//{{AFX_MSG_MAP(CEllipse_testApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp construction
CEllipse_testApp::CEllipse_testApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CEllipse_testApp object
CEllipse_testApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp initialization
BOOL CEllipse_testApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CEllipse_testDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CEllipse_testView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show an
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 118886 2012-12-22 21:52 ellipse_test\Debug\ellipse_test.exe
文件 313516 2012-12-22 21:52 ellipse_test\Debug\ellipse_test.ilk
文件 23520 2012-12-22 21:42 ellipse_test\Debug\ellipse_test.obj
文件 5499240 2012-12-22 21:42 ellipse_test\Debug\ellipse_test.pch
文件 418816 2012-12-22 21:52 ellipse_test\Debug\ellipse_test.pdb
文件 7396 2012-12-22 21:42 ellipse_test\Debug\ellipse_test.res
文件 15269 2012-12-22 21:42 ellipse_test\Debug\ellipse_testDoc.obj
文件 22727 2012-12-22 21:52 ellipse_test\Debug\ellipse_testView.obj
文件 20173 2012-12-22 21:42 ellipse_test\Debug\MainFrm.obj
文件 105860 2012-12-22 21:42 ellipse_test\Debug\StdAfx.obj
文件 205824 2012-12-22 21:52 ellipse_test\Debug\vc60.idb
文件 364544 2012-12-22 21:52 ellipse_test\Debug\vc60.pdb
文件 2045 2012-12-22 21:16 ellipse_test\ellipse_test.clw
文件 4317 2012-12-22 21:16 ellipse_test\ellipse_test.cpp
文件 4681 2012-12-22 21:16 ellipse_test\ellipse_test.dsp
文件 532 2012-12-22 21:16 ellipse_test\ellipse_test.dsw
文件 1422 2012-12-22 21:16 ellipse_test\ellipse_test.h
文件 58368 2012-12-23 19:55 ellipse_test\ellipse_test.ncb
文件 48640 2012-12-23 19:55 ellipse_test\ellipse_test.opt
文件 1582 2012-12-22 21:52 ellipse_test\ellipse_test.plg
文件 10636 2012-12-22 21:16 ellipse_test\ellipse_test.rc
文件 1862 2012-12-22 21:16 ellipse_test\ellipse_testDoc.cpp
文件 1541 2012-12-22 21:16 ellipse_test\ellipse_testDoc.h
文件 4472 2012-12-23 19:54 ellipse_test\ellipse_testView.cpp
文件 2062 2012-12-22 21:18 ellipse_test\ellipse_testView.h
文件 2513 2012-12-22 21:16 ellipse_test\MainFrm.cpp
文件 1581 2012-12-22 21:16 ellipse_test\MainFrm.h
文件 4455 2012-12-22 21:16 ellipse_test\ReadMe.txt
文件 1078 2012-12-22 21:16 ellipse_test\res\ellipse_test.ico
文件 404 2012-12-22 21:16 ellipse_test\res\ellipse_test.rc2
............此处省略11个文件信息
评论
共有 条评论