91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.21MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-30
  • 語言: C/C++
  • 標簽: MFC??多線程??定時器??

資源簡介

MFC中利用多線程實現定時器,對于學習多線程和 ontimer的同學有用

資源截圖

代碼片段和文件信息

//?1yue2.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“1yue2.h“
#include?“1yue2Dlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CMy1yue2App

BEGIN_MESSAGE_MAP(CMy1yue2App?CWinApp)
//{{AFX_MSG_MAP(CMy1yue2App)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CMy1yue2App?construction

CMy1yue2App::CMy1yue2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy1yue2App?object

CMy1yue2App?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CMy1yue2App?initialization

BOOL?CMy1yue2App::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

CMy1yue2Dlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????35380??2013-01-02?16:09??1yue2--利用多線程實現簡單定時器\1yue2.aps
?????文件????????1105??2013-01-02?16:11??1yue2--利用多線程實現簡單定時器\1yue2.clw
?????文件????????2071??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\1yue2.cpp
?????文件????????4141??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\1yue2.dsp
?????文件?????????533??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\1yue2.dsw
?????文件????????1323??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\1yue2.h
?????文件???????41984??2013-01-02?16:36??1yue2--利用多線程實現簡單定時器\1yue2.ncb
?????文件???????48640??2013-01-02?16:36??1yue2--利用多線程實現簡單定時器\1yue2.opt
?????文件?????????517??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\1yue2.plg
?????文件????????5234??2013-01-02?16:09??1yue2--利用多線程實現簡單定時器\1yue2.rc
?????文件????????4683??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\1yue2Dlg.cpp
?????文件????????1306??2013-01-02?16:07??1yue2--利用多線程實現簡單定時器\1yue2Dlg.h
?????目錄???????????0??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\
?????文件??????106547??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\1yue2.exe
?????文件??????204352??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\1yue2.ilk
?????文件???????13926??2013-01-02?16:11??1yue2--利用多線程實現簡單定時器\Debug\1yue2.obj
?????文件?????5503936??2013-01-02?16:11??1yue2--利用多線程實現簡單定時器\Debug\1yue2.pch
?????文件??????353280??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\1yue2.pdb
?????文件????????2484??2013-01-02?16:11??1yue2--利用多線程實現簡單定時器\Debug\1yue2.res
?????文件???????26018??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\1yue2Dlg.obj
?????文件??????105708??2013-01-02?16:11??1yue2--利用多線程實現簡單定時器\Debug\StdAfx.obj
?????文件??????205824??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\vc60.idb
?????文件??????364544??2013-01-02?16:26??1yue2--利用多線程實現簡單定時器\Debug\vc60.pdb
?????文件????????3567??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\ReadMe.txt
?????目錄???????????0??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\res\
?????文件????????1078??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\res\1yue2.ico
?????文件?????????397??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\res\1yue2.rc2
?????文件?????????683??2013-01-02?16:09??1yue2--利用多線程實現簡單定時器\resource.h
?????文件?????????207??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\StdAfx.cpp
?????文件????????1054??2013-01-02?16:06??1yue2--利用多線程實現簡單定時器\StdAfx.h

評論

共有 條評論