資源簡介
用VC完后的模擬示波器 模擬示波器(vc),是Vc界面的源代碼
代碼片段和文件信息
//?OScopeCtrl.cpp?:?implementation?file//
#include?“stdafx.h“
#include?“math.h“
#include?“OScopeCtrl.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__?;
#endif
/////////////////////////////////////////////////////////////////////////////
//?COScopeCtrl
COScopeCtrl::COScopeCtrl()
{
??//?since?plotting?is?based?on?a?LineTo?for?each?new?point
??//?we?need?a?starting?point?(i.e.?a?“previous“?point)
??//?use?0.0?as?the?default?first?point.
??//?these?are?public?member?variables?and?can?be?changed?outside
??//?(after?construction).??Therefore?m_perviousPosition?could?be?set?to
??//?a?more?appropriate?value?prior?to?the?first?call?to?SetPosition.
??m_dPreviousPosition?=???0.0?;
??//?public?variable?for?the?number?of?decimal?places?on?the?y?axis
??m_nYDecimals?=?3?;
??//?set?some?initial?values?for?the?scaling?until?“SetRange“?is?called.
??//?these?are?protected?varaibles?and?must?be?set?with?SetRange
??//?in?order?t
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2230??1998-12-08?13:18??TEMP\OScope\SourceCode\OScopeCtrl.h
?????文件???????16824??1998-12-08?13:17??TEMP\OScope\SourceCode\OScopeCtrl.cpp
評論
共有 條評論