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

📄 monitor.h

📁 本人工作中的一个软件开发实例。里面包含了数据库
💻 H
字号:
// Monitor.h: interface for the CMonitor class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MONITOR_H__843B6CED_BF98_49B6_8C46_B8186AE56825__INCLUDED_)
#define AFX_MONITOR_H__843B6CED_BF98_49B6_8C46_B8186AE56825__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PickerMonitor.h"
#include "MyTimer.h"
#include "Picker.h"
#include "SComm.h"

class CMonitor  :public CFrameWnd
{
public:
	//构造函数与析构函数
	CMonitor();
	virtual			  ~CMonitor();
    void			  ShowMonitor(BOOL bDisplay);
	BOOL			  AddSendOil(int nIndex,long int lValue);
    BOOL              DelSendOil(int nIndex,int nSeq);

    CPicker           *m_pPicker;
    CSComm             m_SComm;
protected:
	//成员函数
	void			CreateTitleLine(void);    
	void			Polling();
	//数据成员
	CPickerMonitor *Monitor[10];   

    //标签对象
	CStatic m_strPickerID;  //鹤位
	CStatic m_strTotalOil;  //总计发油
	CStatic m_strTurnOil;   //本班发油
	CStatic m_strTemp;      //是否空闲
	CStatic m_strSet;       //设置量
	CStatic m_strSend;      //已发量
	CStatic m_strProgress;  //发油进度
	CStatic m_strCurrent;   //当前量
	CStatic m_strSecond;    //第二量
	CStatic m_strThird;     //第三量
	CStatic m_strForth;     //第四量
	CStatic m_strFifth;     //第五量

	//{{AFX_MSG(CMonitor)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnESCommEventScommctrl1(long EventID, LPCTSTR DataString, long Flag);
	afx_msg void OnCorrect(WPARAM,LPARAM);
	afx_msg void OnTimeOut(WPARAM,LPARAM);
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_MONITOR_H__843B6CED_BF98_49B6_8C46_B8186AE56825__INCLUDED_)

⌨️ 快捷键说明

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