資源簡介
用vc++6.0mfc做的鐘表,功能齊全,代碼清楚,很適合初學者。值得參考!祝你們成功!

代碼片段和文件信息
//?clock.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“clock.h“
#include?“clockDlg.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)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?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
CClockDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????35088??2013-05-23?13:46??clock\clock.aps
?????文件????????872??2013-05-23?23:52??clock\clock.clw
?????文件???????2049??2013-05-21?02:26??clock\clock.cpp
?????文件???????4141??2013-05-21?02:26??clock\clock.dsp
?????文件????????518??2013-05-21?17:22??clock\clock.dsw
?????文件???????1313??2013-05-21?02:26??clock\clock.h
?????文件??????48640??2013-05-23?23:52??clock\clock.opt
?????文件???????3446??2013-05-23?14:46??clock\clock.plg
?????文件???????4898??2013-05-23?13:46??clock\clock.rc
?????文件???????6500??2013-05-23?14:46??clock\clockDlg.cpp
?????文件???????1383??2013-05-21?02:29??clock\clockDlg.h
?????文件?????110644??2013-05-23?14:46??clock\Debug\clock.exe
?????文件?????280864??2013-05-23?14:46??clock\Debug\clock.ilk
?????文件??????12788??2013-05-21?02:29??clock\Debug\clock.obj
?????文件????5504752??2013-05-21?02:28??clock\Debug\clock.pch
?????文件?????394240??2013-05-23?14:46??clock\Debug\clock.pdb
?????文件???????2252??2013-05-23?13:46??clock\Debug\clock.res
?????文件??????34426??2013-05-23?14:46??clock\Debug\clockDlg.obj
?????文件?????105478??2013-05-21?02:28??clock\Debug\StdAfx.obj
?????文件?????214016??2013-05-23?23:19??clock\Debug\vc60.idb
?????文件?????364544??2013-05-23?14:46??clock\Debug\vc60.pdb
?????文件???????3561??2013-05-21?02:26??clock\ReadMe.txt
?????文件???????1078??2013-05-21?02:26??clock\res\clock.ico
?????文件????????397??2013-05-21?02:26??clock\res\clock.rc2
?????文件????????532??2013-05-21?02:26??clock\Resource.h
?????文件????????207??2013-05-21?02:26??clock\StdAfx.cpp
?????文件???????1054??2013-05-21?02:26??clock\StdAfx.h
?????目錄??????????0??2013-05-23?14:46??clock\Debug
?????目錄??????????0??2013-05-23?11:03??clock\res
?????目錄??????????0??2013-05-23?23:52??clock
............此處省略4個文件信息
評論
共有 條評論