資源簡介
C++ MFC 帶進度條的狀態欄源碼 學習進度條使用。

代碼片段和文件信息
//?ProgressStatus.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ProgressStatus.h“
#include?“ProgressStatusDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CProgressStatusApp
BEGIN_MESSAGE_MAP(CProgressStatusApp?CWinApp)
//{{AFX_MSG_MAP(CProgressStatusApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CProgressStatusApp?construction
CProgressStatusApp::CProgressStatusApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CProgressStatusApp?object
CProgressStatusApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CProgressStatusApp?initialization
BOOL?CProgressStatusApp::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
CProgressStatusDlg?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??2009-07-10?09:42??015\
?????目錄???????????0??2011-05-31?16:55??015\ProgressStatus\
?????目錄???????????0??2011-05-31?16:55??015\ProgressStatus\Debug\
?????文件?????1839208??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.exe
?????文件??????215444??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.ilk
?????文件???????14570??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.obj
?????文件?????5485524??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.pch
?????文件??????287744??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.pdb
?????文件?????1442600??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatus.res
?????文件???????30627??2011-05-31?16:55??015\ProgressStatus\Debug\ProgressStatusDlg.obj
?????文件??????105740??2011-05-31?16:55??015\ProgressStatus\Debug\StdAfx.obj
?????文件??????197632??2011-05-31?16:55??015\ProgressStatus\Debug\vc60.idb
?????文件??????364544??2011-05-31?16:55??015\ProgressStatus\Debug\vc60.pdb
?????文件?????1461080??2011-05-31?16:55??015\ProgressStatus\ProgressStatus.aps
?????文件????????1096??2011-05-31?16:55??015\ProgressStatus\ProgressStatus.clw
?????文件????????2175??2007-05-08?08:47??015\ProgressStatus\ProgressStatus.cpp
?????文件????????4376??2007-05-08?08:47??015\ProgressStatus\ProgressStatus.dsp
?????文件?????????553??2007-05-08?08:47??015\ProgressStatus\ProgressStatus.dsw
?????文件????????1412??2007-05-08?08:47??015\ProgressStatus\ProgressStatus.h
?????文件???????41984??2011-05-31?16:55??015\ProgressStatus\ProgressStatus.ncb
?????文件???????48640??2011-05-31?16:55??015\ProgressStatus\ProgressStatus.opt
?????文件????????1985??2011-05-31?16:55??015\ProgressStatus\ProgressStatus.plg
?????文件????????5389??2007-05-08?08:47??015\ProgressStatus\ProgressStatus.rc
?????文件????????6239??2007-05-08?08:47??015\ProgressStatus\ProgressStatusDlg.cpp
?????文件????????1557??2007-05-08?08:47??015\ProgressStatus\ProgressStatusDlg.h
?????文件????????3723??2007-05-08?08:47??015\ProgressStatus\ReadMe.txt
?????目錄???????????0??2009-07-10?09:42??015\ProgressStatus\res\
?????文件?????????691??2007-05-08?08:47??015\ProgressStatus\resource.h
?????文件????????1078??2007-05-08?08:47??015\ProgressStatus\res\ProgressStatus.ico
?????文件?????????406??2007-05-08?08:47??015\ProgressStatus\res\ProgressStatus.rc2
?????文件????????7168??2009-04-03?15:31??015\ProgressStatus\res\Thumbs.db
............此處省略3個文件信息
評論
共有 條評論