資源簡介
VC++6.0開發(fā)環(huán)境
MFC框架制作
包括數(shù)字時鐘、表盤時鐘、秒表程序

代碼片段和文件信息
//?Clock.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Clock.h“
#include?“MainFrm.h“
#include?“ClockDoc.h“
#include?“ClockView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClockApp
BEGIN_MESSAGE_MAP(CClockApp?CWinApp)
//{{AFX_MSG_MAP(CClockApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CClockApp?construction
CClockApp::CClockApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClockApp?object
CClockApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClockApp?initialization
BOOL?CClockApp::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(CClockDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CClockView));
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;
}
/////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????44816??2011-08-25?13:24??Clock\Clock.aps
?????文件???????3111??2011-08-29?13:41??Clock\Clock.clw
?????文件???????4191??2011-08-25?09:24??Clock\Clock.cpp
?????文件???????4670??2011-08-25?14:21??Clock\Clock.dsp
?????文件????????533??2011-08-25?14:21??Clock\Clock.dsw
?????文件???????1345??2011-08-25?09:24??Clock\Clock.h
?????文件??????66560??2011-08-29?13:41??Clock\Clock.ncb
?????文件?????427520??2011-08-29?13:41??Clock\Clock.opt
?????文件???????1395??2011-08-29?13:41??Clock\Clock.plg
?????文件??????12876??2011-08-25?13:24??Clock\Clock.rc
?????文件???????1722??2011-08-25?09:24??Clock\ClockDoc.cpp
?????文件???????1464??2011-08-25?09:24??Clock\ClockDoc.h
?????文件???????7674??2011-08-26?14:56??Clock\ClockView.cpp
?????文件???????2493??2011-08-25?10:07??Clock\ClockView.h
?????文件????3425280??2011-08-29?13:41??Clock\Debug\Clock.bsc
?????文件?????127038??2011-08-29?13:41??Clock\Debug\Clock.exe
?????文件?????440596??2011-08-29?13:41??Clock\Debug\Clock.ilk
?????文件??????22850??2011-08-25?13:18??Clock\Debug\Clock.obj
?????文件????6942324??2011-08-25?13:18??Clock\Debug\Clock.pch
?????文件?????492544??2011-08-29?13:41??Clock\Debug\Clock.pdb
?????文件???????7804??2011-08-25?13:24??Clock\Debug\Clock.res
?????文件??????????0??2011-08-25?13:18??Clock\Debug\Clock.sbr
?????文件??????14626??2011-08-25?13:18??Clock\Debug\ClockDoc.obj
?????文件??????????0??2011-08-25?13:18??Clock\Debug\ClockDoc.sbr
?????文件??????40955??2011-08-29?13:41??Clock\Debug\ClockView.obj
?????文件??????????0??2011-08-29?13:41??Clock\Debug\ClockView.sbr
?????文件??????19875??2011-08-25?13:18??Clock\Debug\MainFrm.obj
?????文件??????????0??2011-08-25?13:18??Clock\Debug\MainFrm.sbr
?????文件??????12147??2011-08-25?13:27??Clock\Debug\SetTimeDlg.obj
?????文件??????????0??2011-08-25?13:27??Clock\Debug\SetTimeDlg.sbr
............此處省略23個文件信息
- 上一篇:C++經(jīng)典教材
- 下一篇:MFC圖像直方圖均衡化、銳化、中值濾波
評論
共有 條評論