資源簡介
VC++6.0的實時曲線圖表程序.隨著輸入數(shù)據(jù)的變化,圖表曲線隨之實時的上下波動.

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“teechart.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....?????20075??2013-04-05?22:48??teechart\Debug\MainFrm.obj
????I.A....????105766??2013-04-05?22:48??teechart\Debug\StdAfx.obj
????I.A....????118878??2013-04-29?12:58??teechart\Debug\teechart.exe
????I.A....????349072??2013-04-29?12:58??teechart\Debug\teechart.ilk
????I.A....?????23210??2013-04-05?22:48??teechart\Debug\teechart.obj
????I.A....???5485000??2013-04-05?22:48??teechart\Debug\teechart.pch
????I.A....????459776??2013-04-29?12:58??teechart\Debug\teechart.pdb
????I.A....??????7316??2013-04-05?22:48??teechart\Debug\teechart.res
????I.A....?????14993??2013-04-05?22:48??teechart\Debug\teechartDoc.obj
????I.A....?????26201??2013-04-29?12:58??teechart\Debug\teechartView.obj
????I.A....????205824??2013-04-29?15:11??teechart\Debug\vc60.idb
????I.A....????364544??2013-04-29?12:58??teechart\Debug\vc60.pdb
????I.A....??????2509??2013-04-05?05:42??teechart\MainFrm.cpp
????I.A....??????1581??2013-04-05?05:42??teechart\MainFrm.h
????I.A....??????4359??2013-04-05?05:42??teechart\ReadMe.txt
????I.A....??????1078??2013-04-05?05:42??teechart\res\teechart.ico
????I.A....???????400??2013-04-05?05:42??teechart\res\teechart.rc2
????I.A....??????1078??2013-04-05?05:42??teechart\res\teechartDoc.ico
????I.A....??????1078??2013-04-05?05:42??teechart\res\Toolbar.bmp
????I.A....???????496??2013-04-05?05:42??teechart\Resource.h
????I.A....???????210??2013-04-05?05:42??teechart\StdAfx.cpp
????I.A....??????1054??2013-04-05?05:42??teechart\StdAfx.h
????I.A....?????28972??2013-04-05?22:49??teechart\teechart.aps
????I.A....??????2220??2013-04-29?15:11??teechart\teechart.clw
????I.A....??????4245??2013-04-05?05:42??teechart\teechart.cpp
????I.A....??????4597??2013-04-05?05:42??teechart\teechart.dsp
????I.A....???????524??2013-04-05?05:47??teechart\teechart.dsw
????I.A....??????1378??2013-04-05?05:42??teechart\teechart.h
????I.A....?????58368??2013-04-29?15:11??teechart\teechart.ncb
????I.A....?????48640??2013-04-29?15:11??teechart\teechart.opt
............此處省略12個文件信息
評論
共有 條評論