?? simulationview.h
字號:
// SimulationView.h : interface of the CSimulationView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_)
#define AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CSimulationView : public CScrollView
{
protected: // create from serialization only
CSimulationView();
DECLARE_DYNCREATE(CSimulationView)
// Attributes
public:
CSimulationDoc* GetDocument();
public:
int m_Pages; //當前顯示的頁碼號
int m_MaxPages; //總的顯示頁數,針對原有數據波形顯示
CFile SRFile; //用于保存剪力數據的文件類索引
CFile WTFile; //用于保存重力數據的文件類索引
CWinThread* pReadThread; //數據采集線程指針
CWinThread* pShowThread; //動態波形顯示線程指針
BOOL m_bDataCollect; //數據采集啟動標志
BOOL m_bShowStanData; //顯示載入的標準數據曲線標志
BOOL m_bShowSimuData; //顯示模擬信號數據曲線標志
// Operations
public:
//原有數據波形顯示函數
void DrawWave(CDC* pDC);
//將采集的剪力和重力數據保存到文件
void SaveDataToFile(unsigned short* pSRBuffer,int SRLen,unsigned short* pWTBuffer,int WTLen);
//動態顯示采集到的剪力、重力以及合力數據曲線
void DynamicShowWave(CDC* pDC);
//保存合力數據至文件
void SaveCOData();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSimulationView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSimulationView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSimulationView)
afx_msg void OnInit();
afx_msg void OnStart();
afx_msg void OnStop();
afx_msg void OnLoad();
afx_msg void OnSimulate();
afx_msg void OnShowRealdata();
afx_msg void OnShowSimudata();
afx_msg void OnShowSensordata();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnAppExit();
afx_msg void OnJudge();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in SimulationView.cpp
inline CSimulationDoc* CSimulationView::GetDocument()
{ return (CSimulationDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SIMULATIONVIEW_H__B3EADC6D_B163_495D_A0EA_9421AC877A79__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -