資源簡介
MFC 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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-12-27?23:36??Clock?MFC鬧鐘\
?????目錄???????????0??2016-12-27?23:32??Clock?MFC鬧鐘\Debug\
?????文件???????20199??2012-03-04?17:02??Clock?MFC鬧鐘\Debug\ST.obj
?????文件??????106829??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\StdAfx.obj
?????文件?????1374987??2012-03-04?14:01??Clock?MFC鬧鐘\Debug\StdAfx.sbr
?????文件?????3671040??2012-03-04?16:01??Clock?MFC鬧鐘\Debug\clock.bsc
?????文件??????118858??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.exe
?????文件??????239372??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.ilk
?????文件???????13006??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.obj
?????文件?????5636524??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.pch
?????文件??????312320??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.pdb
?????文件????????3848??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clock.res
?????文件???????????0??2012-03-04?15:48??Clock?MFC鬧鐘\Debug\clock.sbr
?????文件?????????203??2012-03-10?13:56??Clock?MFC鬧鐘\Debug\clock.sln
?????文件????????7680??2012-03-10?13:56??Clock?MFC鬧鐘\Debug\clock.suo
?????文件???????46764??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\clockDlg.obj
?????文件???????????0??2012-03-04?15:52??Clock?MFC鬧鐘\Debug\clockDlg.sbr
?????文件???????11785??2012-03-04?14:01??Clock?MFC鬧鐘\Debug\menu.obj
?????文件???????????0??2012-03-04?14:01??Clock?MFC鬧鐘\Debug\menu.sbr
?????文件?????????839??2012-03-04?16:04??Clock?MFC鬧鐘\Debug\menu2.sbr
?????文件???????26281??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\setclock.obj
?????文件???????12443??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\setcolor.obj
?????文件???????12275??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\settime.obj
?????文件???????????0??2012-03-04?16:01??Clock?MFC鬧鐘\Debug\settime.sbr
?????文件??????214016??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\vc60.idb
?????文件??????397312??2012-03-11?15:33??Clock?MFC鬧鐘\Debug\vc60.pdb
?????文件????????3561??2012-02-29?14:20??Clock?MFC鬧鐘\ReadMe.txt
?????文件?????????376??2012-03-11?14:46??Clock?MFC鬧鐘\StdAfx.cpp
?????文件????????1287??2012-03-11?14:46??Clock?MFC鬧鐘\StdAfx.h
?????文件???????23336??2016-12-27?23:35??Clock?MFC鬧鐘\clock.aps
?????文件????????2997??2016-12-27?23:36??Clock?MFC鬧鐘\clock.clw
............此處省略20個文件信息
評論
共有 條評論