資源簡介
MFC制作的一個風車,以前上課的作業.3片葉片顏色不一,有控制葉片大小和旋轉速度的菜單選項,相對比較容易.適合新入門的人.

代碼片段和文件信息
//?fengche.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“fengche.h“
#include?“MainFrm.h“
#include?“fengcheDoc.h“
#include?“fengcheView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFengcheApp
BEGIN_MESSAGE_MAP(CFengcheApp?CWinApp)
//{{AFX_MSG_MAP(CFengcheApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CFengcheApp?construction
CFengcheApp::CFengcheApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFengcheApp?object
CFengcheApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFengcheApp?initialization
BOOL?CFengcheApp::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(CFengcheDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CFengcheView));
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();
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????118871??2012-04-06?20:41??fengche\Debug\fengche.exe
?????文件?????588112??2012-04-06?20:41??fengche\Debug\fengche.ilk
?????文件??????22906??2012-04-05?17:33??fengche\Debug\fengche.obj
?????文件????5494164??2012-04-04?23:19??fengche\Debug\fengche.pch
?????文件?????484352??2012-04-06?20:41??fengche\Debug\fengche.pdb
?????文件???????7452??2012-04-06?19:11??fengche\Debug\fengche.res
?????文件??????14675??2012-04-04?23:19??fengche\Debug\fengcheDoc.obj
?????文件??????30073??2012-04-06?20:41??fengche\Debug\fengcheView.obj
?????文件??????19825??2012-04-05?17:14??fengche\Debug\MainFrm.obj
?????文件?????105548??2012-04-04?23:19??fengche\Debug\StdAfx.obj
?????文件?????230400??2012-04-06?20:41??fengche\Debug\vc60.idb
?????文件?????380928??2012-04-06?20:41??fengche\Debug\vc60.pdb
?????文件??????44588??2012-04-06?19:11??fengche\fengche.aps
?????文件???????2381??2012-04-06?20:41??fengche\fengche.clw
?????文件???????4227??2012-04-04?22:59??fengche\fengche.cpp
?????文件???????4576??2012-04-04?22:59??fengche\fengche.dsp
?????文件????????522??2012-04-04?22:59??fengche\fengche.dsw
?????文件???????1367??2012-04-04?22:59??fengche\fengche.h
?????文件??????99328??2012-04-06?20:44??fengche\fengche.ncb
?????文件??????51712??2012-04-06?20:44??fengche\fengche.opt
?????文件????????733??2012-04-06?20:41??fengche\fengche.plg
?????文件??????12182??2012-04-06?19:11??fengche\fengche.rc
?????文件???????1762??2012-04-04?22:59??fengche\fengcheDoc.cpp
?????文件???????1486??2012-04-04?22:59??fengche\fengcheDoc.h
?????文件???????4658??2012-04-06?20:41??fengche\fengcheView.cpp
?????文件???????2160??2012-04-06?20:04??fengche\fengcheView.h
?????文件???????2512??2012-04-05?17:14??fengche\MainFrm.cpp
?????文件???????1583??2012-04-05?17:14??fengche\MainFrm.h
?????文件???????4335??2012-04-04?22:59??fengche\ReadMe.txt
?????文件???????1078??2012-04-04?22:59??fengche\res\fengche.ico
............此處省略12個文件信息
- 上一篇:電子線路設計CAD實驗報告(proteus)
- 下一篇:c++和sql的客房管理系統
評論
共有 條評論