資源簡介
MFC的結課作業,發上來玩玩。
雅俗共賞~~

代碼片段和文件信息
//?chapter6_2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“chapter6_2.h“
#include?“MainFrm.h“
#include?“chapter6_2Doc.h“
#include?“chapter6_2View.h“
#include?“View1.h“
#include?“View2.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChapter6_2App
BEGIN_MESSAGE_MAP(CChapter6_2App?CWinApp)
//{{AFX_MSG_MAP(CChapter6_2App)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//}}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()
/////////////////////////////////////////////////////////////////////////////
//?CChapter6_2App?construction
CChapter6_2App::CChapter6_2App()
{
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChapter6_2App?object
CChapter6_2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChapter6_2App?initialization
BOOL?CChapter6_2App::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
#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.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?document?templates
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CChapter6_2Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CView1));
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;
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CAboutDlg?dialog?used?for?App?About
class?CAboutDlg?:?public?CDialog
{
public:
CAboutDlg();
//?Dialog?Data
//{{AFX_DATA(CAboutDlg)
enum?{?IDD?=?IDD_ABOUTBOX?};
//}}AFX_DATA
//?ClassWizard?generated?virtual?function?overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual?void?DoDataExchange(CDataExchange*?pDX);????//?DDX/DDV?support
//}}AFX_VIRTUAL
//?Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//?No?message?handlers
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg()?:?CDialog(CAboutDlg::IDD)
{
//
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2655??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\chapter6_2.clw
?????文件????????543??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\chapter6_2.dsw
?????文件???????1258??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\chapter6_2.h
?????文件??????99328??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\chapter6_2.ncb
?????文件???????1324??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\chapter6_2.plg
?????文件???????2776??2005-04-13?21:59??蔡澤能?0806550207大家來找茬\chapter6_2View.cpp
?????文件????????212??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\StdAfx.cpp
?????文件???????1079??2005-04-13?22:00??蔡澤能?0806550207大家來找茬\StdAfx.h
?????文件???????1078??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\res\chapter6_2.ico
?????文件????????402??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\res\chapter6_2.rc2
?????文件???????1078??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\res\chapter6_2Doc.ico
?????文件???????1078??2005-04-13?21:34??蔡澤能?0806550207大家來找茬\res\Toolbar.bmp
?????文件????1156456??2010-06-23?21:38??蔡澤能?0806550207大家來找茬\res\10001.bmp
?????文件????1156456??2010-06-23?21:38??蔡澤能?0806550207大家來找茬\res\10002.bmp
?????文件????2330324??2010-06-24?01:07??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.res
?????文件?????230400??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\vc60.idb
?????文件????5865076??2010-06-23?21:53??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.pch
?????文件?????372736??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\vc60.pdb
?????文件?????105976??2010-06-23?21:53??蔡澤能?0806550207大家來找茬\Debug\StdAfx.obj
?????文件????5005405??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.exe
?????文件????4236288??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.pdb
?????文件??????20350??2010-06-24?00:23??蔡澤能?0806550207大家來找茬\Debug\MainFrm.obj
?????文件??????29359??2010-06-24?00:42??蔡澤能?0806550207大家來找茬\Debug\chapter6_2View.obj
?????文件??????22241??2010-06-24?00:42??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.obj
?????文件??????30366??2010-06-24?00:42??蔡澤能?0806550207大家來找茬\Debug\chapter6_2Doc.obj
?????文件????2590128??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\chapter6_2.ilk
?????文件??????38771??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\View2.obj
?????文件??????38970??2010-06-24?01:08??蔡澤能?0806550207大家來找茬\Debug\View1.obj
?????文件???????1870??2010-06-23?20:40??蔡澤能?0806550207大家來找茬\chapter6_2View.h
?????文件???????3565??2010-06-23?21:00??蔡澤能?0806550207大家來找茬\chapter6_2.cpp
............此處省略19個文件信息
評論
共有 條評論