資源簡介
基于MFC的在狀態欄里添加進度條,是基于對話框的

代碼片段和文件信息
//?ProgressBar.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ProgressBar.h“
#include?“ProgressBarDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CProgressBarApp
BEGIN_MESSAGE_MAP(CProgressBarApp?CWinApp)
//{{AFX_MSG_MAP(CProgressBarApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CProgressBarApp?construction
CProgressBarApp::CProgressBarApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CProgressBarApp?object
CProgressBarApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CProgressBarApp?initialization
BOOL?CProgressBarApp::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
CProgressBarDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1169??2008-11-18?11:49??07\ProgressBar.clw
?????文件???????2133??2007-02-10?09:42??07\ProgressBar.cpp
?????文件???????4319??2008-09-11?15:25??07\ProgressBar.dsp
?????文件????????545??2007-02-10?09:42??07\ProgressBar.dsw
?????文件???????1379??2007-02-10?09:42??07\ProgressBar.h
?????文件?????655360??2008-11-18?11:49??07\ProgressBar.opt
?????文件???????5517??2008-09-11?14:59??07\ProgressBar.rc
?????文件???????5104??2008-09-11?14:54??07\ProgressBarDlg.cpp
?????文件???????1394??2007-02-10?09:47??07\ProgressBarDlg.h
?????文件???????3669??2007-02-10?09:42??07\ReadMe.txt
?????文件????????213??2007-02-10?09:42??07\StdAfx.cpp
?????文件???????1054??2007-02-10?09:42??07\StdAfx.h
?????文件????????734??2008-09-11?14:53??07\resource.h
?????文件???????1078??2007-02-10?09:42??07\res\ProgressBar.ico
?????文件????????403??2007-02-10?09:42??07\res\ProgressBar.rc2
?????文件?????562412??2008-09-11?14:53??07\res\注冊成功頁.bmp
?????目錄??????????0??2009-07-04?08:55??07\res
?????目錄??????????0??2009-07-04?08:55??07
-----------?---------??----------?-----??----
??????????????1246483????????????????????18
評論
共有 條評論