资源简介
计算机图形学简单多边形裁剪程序,开发环境VC++6.0,语言C++
代码片段和文件信息
// czh.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “czh.h“
#include “MainFrm.h“
#include “czhDoc.h“
#include “czhView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCzhApp
BEGIN_MESSAGE_MAP(CCzhApp CWinApp)
//{{AFX_MSG_MAP(CCzhApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CCzhApp construction
CCzhApp::CCzhApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCzhApp object
CCzhApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCzhApp initialization
BOOL CCzhApp::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(CCzhDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CCzhView));
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 and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////////////////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44832 2013-05-27 21:03 czh\czh.aps
文件 2377 2013-06-02 15:39 czh\czh.clw
文件 4155 2013-05-26 12:56 czh\czh.cpp
文件 4492 2013-05-26 12:56 czh\czh.dsp
文件 512 2013-05-26 12:56 czh\czh.dsw
文件 1323 2013-05-26 12:56 czh\czh.h
文件 82944 2013-06-02 15:40 czh\czh.ncb
文件 54784 2013-06-02 15:40 czh\czh.opt
文件 240 2013-06-02 15:39 czh\czh.plg
文件 12142 2013-05-27 21:03 czh\czh.rc
文件 1703 2013-05-27 20:57 czh\czhDoc.cpp
文件 1442 2013-05-27 20:55 czh\czhDoc.h
文件 10025 2013-05-27 21:50 czh\czhView.cpp
文件 2885 2013-05-27 20:21 czh\czhView.h
文件 127055 2013-05-27 21:50 czh\Debug\czh.exe
文件 418528 2013-05-27 21:50 czh\Debug\czh.ilk
文件 22893 2013-05-27 20:55 czh\Debug\czh.obj
文件 5499464 2013-05-27 20:55 czh\Debug\czh.pch
文件 459776 2013-05-27 21:50 czh\Debug\czh.pdb
文件 7720 2013-05-27 21:03 czh\Debug\czh.res
文件 14729 2013-05-27 21:03 czh\Debug\czhDoc.obj
文件 59229 2013-05-27 21:50 czh\Debug\czhView.obj
文件 19870 2013-05-27 20:55 czh\Debug\MainFrm.obj
文件 105569 2013-05-27 20:55 czh\Debug\StdAfx.obj
文件 189440 2013-06-02 15:39 czh\Debug\vc60.idb
文件 372736 2013-05-27 21:50 czh\Debug\vc60.pdb
文件 2504 2013-05-26 12:56 czh\MainFrm.cpp
文件 1581 2013-05-26 12:56 czh\MainFrm.h
文件 4239 2013-05-26 12:56 czh\ReadMe.txt
文件 1078 2013-05-27 20:48 czh\res\czh.ico
............此处省略12个文件信息
- 上一篇:NTL库VC 数论C++函数库
- 下一篇:PC游戏编程-人机博弈王小春 编著
评论
共有 条评论