資源簡介
使用VC++制作的簡易電子時鐘,使用到了一點點技巧

代碼片段和文件信息
//?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????37816??2009-07-18?15:09??Clock\Clock.aps
?????文件???????3040??2009-07-18?15:10??Clock\Clock.clw
?????文件???????2049??2009-07-18?09:22??Clock\Clock.cpp
?????文件???????4262??2009-07-18?12:08??Clock\Clock.dsp
?????文件????????535??2009-07-18?09:22??Clock\Clock.dsw
?????文件???????1313??2009-07-18?09:22??Clock\Clock.h
?????文件??????58368??2009-07-18?15:10??Clock\Clock.ncb
?????文件??????53760??2009-07-18?15:10??Clock\Clock.opt
?????文件????????244??2009-07-18?15:10??Clock\Clock.plg
?????文件???????7616??2009-07-18?15:09??Clock\Clock.rc
?????文件???????6981??2009-07-18?15:07??Clock\ClockDlg.cpp
?????文件???????1654??2009-07-18?14:53??Clock\ClockDlg.h
?????文件????????643??2009-07-18?10:34??Clock\DColor.cpp
?????文件???????1122??2009-07-18?10:34??Clock\DColor.h
?????文件?????114737??2009-07-18?15:09??Clock\Debug\Clock.exe
?????文件?????241176??2009-07-18?15:09??Clock\Debug\Clock.ilk
?????文件??????14303??2009-07-18?14:55??Clock\Debug\Clock.obj
?????文件????5510732??2009-07-18?09:42??Clock\Debug\Clock.pch
?????文件?????410624??2009-07-18?15:09??Clock\Debug\Clock.pdb
?????文件???????3852??2009-07-18?15:09??Clock\Debug\Clock.res
?????文件??????32353??2009-07-18?15:07??Clock\Debug\ClockDlg.obj
?????文件???????9051??2009-07-18?10:38??Clock\Debug\DColor.obj
?????文件?????105597??2009-07-18?09:42??Clock\Debug\StdAfx.obj
?????文件?????214016??2009-07-18?15:10??Clock\Debug\vc60.idb
?????文件?????372736??2009-07-18?15:07??Clock\Debug\vc60.pdb
?????文件???????3561??2009-07-18?09:22??Clock\ReadMe.txt
?????文件???????1078??2009-07-18?09:22??Clock\res\Clock.ico
?????文件????????397??2009-07-18?09:22??Clock\res\Clock.rc2
?????文件???????2753??2009-07-18?14:40??Clock\resource.h
?????文件????????207??2009-07-18?09:22??Clock\StdAfx.cpp
............此處省略7個文件信息
評論
共有 條評論