This repository has been archived on 2022-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
Multichannel-Analyzer/MCA/ControlView.h
YiHui Liu fd8d749eb9 add:
* 全谱区
* 放大区
* 结束条件
* 模拟信号
* 开始、结束、暂停
2022-05-31 22:21:20 +08:00

74 lines
1.7 KiB
C++

#pragma once
#include <chrono>
// CControlView 窗体视图
class CControlView : public CFormView
{
DECLARE_DYNCREATE(CControlView)
protected:
CControlView(); // 动态创建所使用的受保护的构造函数
virtual ~CControlView();
public:
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG_CONTROL };
#endif
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnSize(UINT nType, int cx, int cy);
virtual void OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/);
double GetMilliTime();
// 选择信息
CString source = (CString)"Cs137";
// 光标信息
int m_nCursor1;
int m_nCursor2;
int m_nCursorROI;
int m_nCursorROICount;
// 侧边信息
double m_nCond;
double m_nT0;
double m_nTime;
CString m_nTimeStr;
int m_nTotalCount;
int m_nPartCount;
int m_nMaxCount;
int m_nRange;
CComboBox m_ComboMode;
CComboBox m_ComboAxis;
virtual void OnInitialUpdate();
// 菜单与工具栏响应
CMenu m_Menu;
CToolBar m_wndToolBar;
BOOL startFlag = TRUE;
BOOL stopFlag = FALSE;
BOOL clearFlag = FALSE;
afx_msg void OnStaStart();
afx_msg void OnUpdateStaStart(CCmdUI* pCmdUI);
afx_msg void OnStaStop();
afx_msg void OnUpdateStaStop(CCmdUI* pCmdUI);
afx_msg void OnStaClear();
afx_msg void OnUpdateStaClear(CCmdUI* pCmdUI);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnSimuCo();
afx_msg void OnSimuCs();
afx_msg void OnSimuNa();
};