資源簡介
本資源包含完整的示波器實現代碼,MFC實現類的進一步封裝。使用簡單。

代碼片段和文件信息
//?Histogram.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Histogram.h“
#include?“HistogramDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CHistogramApp
BEGIN_MESSAGE_MAP(CHistogramApp?CWinApp)
//{{AFX_MSG_MAP(CHistogramApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CHistogramApp?construction
CHistogramApp::CHistogramApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CHistogramApp?object
CHistogramApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CHistogramApp?initialization
BOOL?CHistogramApp::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
CHistogramDlg?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??2011-11-10?19:11??示波器2\
?????目錄???????????0??2011-11-10?17:00??示波器2\Debug\
?????文件??????122944??2011-11-10?17:00??示波器2\Debug\Histogram.exe
?????文件??????282904??2011-11-10?17:00??示波器2\Debug\Histogram.ilk
?????文件???????14249??2011-11-10?16:43??示波器2\Debug\Histogram.obj
?????文件?????6871508??2011-11-10?16:11??示波器2\Debug\Histogram.pch
?????文件??????459776??2011-11-10?17:00??示波器2\Debug\Histogram.pdb
?????文件????????2604??2011-11-10?16:28??示波器2\Debug\Histogram.res
?????文件???????11366??2011-11-10?16:43??示波器2\Debug\Histogram.sbr
?????文件???????56082??2011-11-10?17:00??示波器2\Debug\HistogramCtrl.obj
?????文件???????19907??2011-11-10?17:00??示波器2\Debug\HistogramCtrl.sbr
?????文件???????26652??2011-11-10?16:43??示波器2\Debug\HistogramDlg.obj
?????文件???????13590??2011-11-10?16:43??示波器2\Debug\HistogramDlg.sbr
?????文件??????105745??2011-11-10?16:11??示波器2\Debug\StdAfx.obj
?????文件?????1366517??2011-11-10?16:11??示波器2\Debug\StdAfx.sbr
?????文件??????214016??2011-11-10?19:09??示波器2\Debug\vc60.idb
?????文件??????364544??2011-11-10?17:00??示波器2\Debug\vc60.pdb
?????文件???????35928??2011-11-10?16:28??示波器2\Histogram.aps
?????文件????????1829??2011-11-10?19:11??示波器2\Histogram.clw
?????文件????????2105??2001-03-23?00:03??示波器2\Histogram.cpp
?????文件????????4352??2001-04-02?15:23??示波器2\Histogram.dsp
?????文件?????????543??2001-03-23?00:03??示波器2\Histogram.dsw
?????文件????????1357??2001-03-23?00:03??示波器2\Histogram.h
?????文件???????58368??2011-11-10?19:11??示波器2\Histogram.ncb
?????文件???????48640??2011-11-10?19:11??示波器2\Histogram.opt
?????文件?????????732??2011-11-10?17:00??示波器2\Histogram.plg
?????文件????????5306??2011-11-10?16:28??示波器2\Histogram.rc
?????文件????????9008??2011-11-10?17:00??示波器2\HistogramCtrl.cpp
?????文件????????2038??2011-11-10?16:40??示波器2\HistogramCtrl.h
?????文件???????16210??2011-11-01?14:37??示波器2\HistogramCtrl_demo.zip
?????文件????????4878??2001-04-13?23:41??示波器2\HistogramDlg.cpp
............此處省略8個文件信息
- 上一篇:C++做的泊松分布,高斯分布,瑞利分布
- 下一篇:基于C6000系列DSP的C程序包
評論
共有 條評論