-
大小: 3.48MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-10-29
- 語言: C/C++
- 標(biāo)簽:
資源簡介
利用MFC寫的定時(shí)開關(guān)機(jī)程序,界面簡潔,程序簡單易懂,適合新手參考學(xué)習(xí)。

代碼片段和文件信息
//?58.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“58.h“
#include?“58Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy58App
BEGIN_MESSAGE_MAP(CMy58App?CWinApp)
//{{AFX_MSG_MAP(CMy58App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy58App?construction
CMy58App::CMy58App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy58App?object
CMy58App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy58App?initialization
BOOL?CMy58App::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
CMy58Dlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????35904??2014-06-03?10:59??58\58.aps
?????文件???????1473??2014-06-04?16:51??58\58.clw
?????文件???????2029??2014-05-28?08:47??58\58.cpp
?????文件???????4091??2014-05-28?10:11??58\58.dsp
?????文件????????527??2014-05-28?08:47??58\58.dsw
?????文件???????1290??2014-05-28?08:47??58\58.h
?????文件??????58368??2014-06-04?16:52??58\58.ncb
?????文件??????54784??2014-06-04?16:52??58\58.opt
?????文件???????1066??2014-06-04?16:51??58\58.plg
?????文件???????6114??2014-06-03?10:59??58\58.rc
?????文件??????10484??2014-06-04?16:51??58\58Dlg.cpp
?????文件???????1597??2014-06-03?10:53??58\58Dlg.h
?????文件????3662848??2014-06-04?16:51??58\Debug\58.bsc
?????文件?????114726??2014-06-04?16:51??58\Debug\58.exe
?????文件?????245088??2014-06-04?16:51??58\Debug\58.ilk
?????文件??????13667??2014-06-03?10:53??58\Debug\58.obj
?????文件????6874852??2014-05-29?12:36??58\Debug\58.pch
?????文件?????386048??2014-06-04?16:51??58\Debug\58.pdb
?????文件???????2880??2014-06-03?10:59??58\Debug\58.res
?????文件??????????0??2014-06-03?10:59??58\Debug\58.sbr
?????文件??????39784??2014-06-04?16:51??58\Debug\58Dlg.obj
?????文件??????????0??2014-06-04?16:51??58\Debug\58Dlg.sbr
?????文件?????105405??2014-05-29?12:36??58\Debug\StdAfx.obj
?????文件????1376228??2014-05-29?12:36??58\Debug\StdAfx.sbr
?????文件?????214016??2014-06-04?16:51??58\Debug\vc60.idb
?????文件?????364544??2014-06-04?16:51??58\Debug\vc60.pdb
?????文件???????3513??2014-05-28?08:47??58\ReadMe.txt
?????文件???????1078??2014-05-28?08:47??58\res\58.ico
?????文件????????394??2014-05-28?08:47??58\res\58.rc2
?????文件???????1002??2014-06-03?10:59??58\resource.h
............此處省略8個(gè)文件信息
評(píng)論
共有 條評(píng)論