⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stationstatus.h

📁 实时监控
💻 H
字号:
#if !defined(AFX_STATIONSTATUS_H__3F1639DF_2166_4D06_842E_E0ABB66C5CFA__INCLUDED_)
#define AFX_STATIONSTATUS_H__3F1639DF_2166_4D06_842E_E0ABB66C5CFA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StationStatus.h : header file
//
#include "msflexgrid.h"
#include "../utils/TransCK.h"
#include "RightLogin.h"
#include "../utils/TransButton.h"
/////////////////////////////////////////////////////////////////////////////
// CStationStatus dialog


class CStationStatus : public CDialog
{
// Construction
public:
	CStationStatus(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CStationStatus)
	enum { IDD = IDD_STATUS_QUERY };
	CComboBox	m_stationctl;
	CString	m_station;

	CMSFlexGrid	m_grid;

	BOOL			m_alarmout1;
	BOOL			m_alarmout2;
	BOOL			m_alarmout3;
	BOOL			m_alarmout4;
	CTransCK		m_alarmout1ctl;
	CTransCK		m_alarmout2ctl;
	CTransCK		m_alarmout3ctl;
	CTransCK		m_alarmout4ctl;

	CTransButton	m_turnonctl;
	CLabel			m_lable;

	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStationStatus)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	CBrush m_brush;

	int cyc_num;

	int all_chnls;

	void turnon();

	void onintigrid(); 

	LRESULT on_get_ok(WPARAM, LPARAM);

	void OnQueryTitle(int channel);

	void OnQueryRecord(int channel);

	void OnQueryMotionRecord(int channel); 

	void OnQueryAlarmRecord(int channel); 
	
	void OnQuerySchedRecord(int channel); 

	void onsetgrid(int row, int col, CString str);

	BOOL onsetonoffgrid(int row, int col, BOOL m_bool);

	BOOL checktime(CTime &t1, CTime &t2, CTime &t3, CTime &t4); 

	// Generated message map functions
	//{{AFX_MSG(CStationStatus)
	virtual BOOL OnInitDialog();
	afx_msg void OnSetfocusStation();
	afx_msg void OnSelchangeStation();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STATIONSTATUS_H__3F1639DF_2166_4D06_842E_E0ABB66C5CFA__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -