資源簡介
VC++ 寫的數字時鐘小程序,適合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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????23912??2011-09-27?14:46??Clock2\Clock.aps
?????文件???????2941??2011-09-27?14:46??Clock2\Clock.clw
?????文件???????2049??2008-10-04?16:03??Clock2\Clock.cpp
?????文件???????4630??2008-10-10?09:12??Clock2\Clock.dsp
?????文件????????533??2008-10-04?16:03??Clock2\Clock.dsw
?????文件???????1309??2009-07-12?11:02??Clock2\Clock.h
?????文件??????82944??2011-09-27?14:46??Clock2\Clock.ncb
?????文件??????54784??2011-09-27?14:46??Clock2\Clock.opt
?????文件???????1754??2011-09-14?22:13??Clock2\Clock.plg
?????文件????????550??2008-10-10?09:12??Clock2\Clock.positions
?????文件???????7544??2009-07-12?11:02??Clock2\Clock.rc
?????文件???????7321??2009-07-12?11:03??Clock2\ClockDlg.cpp
?????文件???????1522??2009-07-12?11:02??Clock2\ClockDlg.h
?????文件????????928??2009-07-12?11:02??Clock2\downcode.com.txt
?????文件???????1424??2008-10-04?17:38??Clock2\MyColor.cpp
?????文件????????623??2009-07-12?11:03??Clock2\MyColor.h
?????文件???????3561??2008-10-04?16:03??Clock2\ReadMe.txt
?????文件???????1078??2008-10-04?16:03??Clock2\res\Clock.ico
?????文件????????397??2008-10-04?16:03??Clock2\res\Clock.rc2
?????文件????????928??2009-07-12?11:02??Clock2\res\downcode.com.txt
?????文件???????3689??2008-10-09?22:38??Clock2\resource.fd
?????文件???????2845??2008-10-09?22:38??Clock2\Resource.h
?????文件????????207??2008-10-04?16:03??Clock2\StdAfx.cpp
?????文件???????1054??2008-10-04?16:03??Clock2\StdAfx.h
?????目錄??????????0??2011-09-27?14:47??Clock2\Debug
?????目錄??????????0??2011-09-14?22:29??Clock2\res
?????目錄??????????0??2011-09-27?14:46??Clock2
-----------?---------??----------?-----??----
???????????????208527????????????????????27
............此處省略0個文件信息
- 上一篇:C++跑酷游戲
- 下一篇:FTP客戶端程序,c語言編寫
評論
共有 條評論