資源簡介
MFC畫圖,溫度和濕度曲線含源碼

代碼片段和文件信息
//?HomeWork.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“HomeWork.h“
#include?“MainFrm.h“
#include?“HomeWorkDoc.h“
#include?“HomeWorkView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CHomeWorkApp
BEGIN_MESSAGE_MAP(CHomeWorkApp?CWinApp)
//{{AFX_MSG_MAP(CHomeWorkApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CHomeWorkApp?construction
CHomeWorkApp::CHomeWorkApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CHomeWorkApp?object
CHomeWorkApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CHomeWorkApp?initialization
BOOL?CHomeWorkApp::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(CHomeWorkDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CHomeWorkView));
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->Up
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????90??2010-04-21?23:03??mfc\data.txt
?????文件?????????94??2010-04-22?19:29??mfc\data2.txt
?????文件?????????90??2010-04-21?23:03??mfc\Debug\data.txt
?????文件?????????94??2010-04-22?19:29??mfc\Debug\data2.txt
?????文件?????122927??2010-05-17?22:10??mfc\Debug\HomeWork.exe
?????文件?????382964??2010-05-17?22:10??mfc\Debug\HomeWork.ilk
?????文件??????22904??2010-05-17?22:10??mfc\Debug\HomeWork.obj
?????文件????5688752??2010-05-17?22:10??mfc\Debug\HomeWork.pch
?????文件?????484352??2010-05-17?22:10??mfc\Debug\HomeWork.pdb
?????文件???????7512??2010-05-17?21:57??mfc\Debug\HomeWork.res
?????文件??????14667??2010-05-17?22:10??mfc\Debug\HomeWorkDoc.obj
?????文件??????32258??2010-05-17?22:10??mfc\Debug\HomeWorkView.obj
?????文件??????27731??2010-05-17?22:10??mfc\Debug\MainFrm.obj
?????文件?????105490??2010-05-17?22:10??mfc\Debug\StdAfx.obj
?????文件?????345088??2010-05-17?22:10??mfc\Debug\vc60.idb
?????文件?????364544??2010-05-17?22:10??mfc\Debug\vc60.pdb
?????文件??????44484??2010-05-17?21:57??mfc\HomeWork.aps
?????文件???????2534??2010-05-17?22:10??mfc\HomeWork.clw
?????文件???????4245??2010-04-21?19:47??mfc\HomeWork.cpp
?????文件???????4657??2010-05-17?22:05??mfc\HomeWork.dsp
?????文件????????539??2010-04-21?19:47??mfc\HomeWork.dsw
?????文件????????939??2013-05-02?21:25??mfc\HomeWork.exe.lnk
?????文件???????1378??2010-04-21?19:47??mfc\HomeWork.h
?????文件?????140288??2010-05-17?22:10??mfc\HomeWork.ncb
?????文件??????55808??2010-05-17?22:10??mfc\HomeWork.opt
?????文件???????1324??2010-05-17?22:10??mfc\HomeWork.plg
?????文件??????12388??2010-05-17?21:57??mfc\HomeWork.rc
?????文件???????1782??2010-04-21?19:47??mfc\HomeWorkDoc.cpp
?????文件???????1497??2010-04-21?19:47??mfc\HomeWorkDoc.h
?????文件???????6695??2010-05-17?22:04??mfc\HomeWorkView.cpp
............此處省略19個文件信息
評論
共有 條評論