資源簡介
這是一個基于MFC的計時器程序,結構簡單明了,有詳細注釋,適合新手入門學習,能對MCF結構有清晰了解。
代碼片段和文件信息
//?CdTimer.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CdTimer.h“
#include?“CdTimerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCdTimerApp
BEGIN_MESSAGE_MAP(CCdTimerApp?CWinApp)
//{{AFX_MSG_MAP(CCdTimerApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCdTimerApp?construction
CCdTimerApp::CCdTimerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCdTimerApp?object
CCdTimerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCdTimerApp?initialization
BOOL?CCdTimerApp::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
CCdTimerDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-02-27?11:03??計時器\
?????目錄???????????0??2017-02-28?09:06??計時器\CdTimer\
?????文件???????22680??2017-02-27?11:13??計時器\CdTimer\CdTimer.aps
?????文件????????1539??2013-08-17?17:22??計時器\CdTimer\CdTimer.clw
?????文件????????2077??2013-08-16?10:01??計時器\CdTimer\CdTimer.cpp
?????文件????????4444??2013-08-16?23:13??計時器\CdTimer\CdTimer.dsp
?????文件?????????539??2013-08-16?11:59??計時器\CdTimer\CdTimer.dsw
?????文件????????1335??2013-08-16?10:01??計時器\CdTimer\CdTimer.h
?????文件???????58368??2013-08-17?17:22??計時器\CdTimer\CdTimer.ncb
?????文件???????49664??2013-08-17?17:22??計時器\CdTimer\CdTimer.opt
?????文件?????????563??2013-08-17?16:18??計時器\CdTimer\CdTimer.plg
?????文件????????6234??2013-08-17?11:24??計時器\CdTimer\CdTimer.rc
?????文件????51597312??2017-02-28?09:06??計時器\CdTimer\CdTimer.sdf
?????文件?????????880??2017-02-27?11:14??計時器\CdTimer\CdTimer.sln
?????文件???????14848??2017-02-28?09:06??計時器\CdTimer\CdTimer.suo
?????文件????????8062??2017-02-27?14:32??計時器\CdTimer\CdTimer.vcxproj
?????文件????????2314??2017-02-27?11:05??計時器\CdTimer\CdTimer.vcxproj.filters
?????文件?????????143??2017-02-27?11:05??計時器\CdTimer\CdTimer.vcxproj.user
?????文件????????7106??2017-02-27?16:55??計時器\CdTimer\CdTimerDlg.cpp
?????文件????????1754??2013-08-17?15:22??計時器\CdTimer\CdTimerDlg.h
?????目錄???????????0??2017-02-27?16:57??計時器\CdTimer\Debug\
?????文件???????33720??2017-02-27?16:55??計時器\CdTimer\Debug\CL.read.1.tlog
?????文件????????1880??2017-02-27?16:55??計時器\CdTimer\Debug\CL.write.1.tlog
?????文件????????2112??2017-02-27?14:37??計時器\CdTimer\Debug\CdTimer.Build.CppClean.log
?????文件???????77824??2017-02-27?16:55??計時器\CdTimer\Debug\CdTimer.exe
?????文件?????????667??2017-02-27?14:37??計時器\CdTimer\Debug\CdTimer.exe.em
?????文件?????????732??2017-02-27?14:37??計時器\CdTimer\Debug\CdTimer.exe.em
?????文件?????????381??2017-02-27?16:55??計時器\CdTimer\Debug\CdTimer.exe.intermediate.manifest
?????文件?????1016404??2017-02-27?16:55??計時器\CdTimer\Debug\CdTimer.ilk
?????文件??????????64??2017-02-27?16:57??計時器\CdTimer\Debug\CdTimer.lastbuildstate
?????文件????????1005??2017-02-27?16:57??計時器\CdTimer\Debug\CdTimer.log
............此處省略47個文件信息
評論
共有 條評論