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

📄 mainfrm.h

📁 RFID温度签的源码
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//


#pragma once

#define ID_BTN_TOOLBAR_1		1000
#define ID_BTN_TOOLBAR_2		1001
#define ID_BTN_TOOLBAR_3		1003

#define MAX_CARD_COUNT			128

#include "DynamicData.h"

typedef struct tagCardAD
{
	U32		CardID;
	U8		AD;
}CARD_AD;

class CMainFrame : public CFrameWnd
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;


public:
	afx_msg void OnManualScan();
	afx_msg void OnAutoScan();
	afx_msg void OnReadData();
	afx_msg void OnWriteData();
	afx_msg void OnTemperatureStart();
	afx_msg void OnTemperatureEnd();
	afx_msg void OnInfoProductName();
	afx_msg void OnInfoManufacture();
	afx_msg void OnHistoryReadData();
	afx_msg void OnListView();
	afx_msg void OnFigView();
	afx_msg void OnStat();
	afx_msg void OnExportData();
	afx_msg void OnUpdateDeviceMenu(CCmdUI *pCmdUI);

	afx_msg void OnBtn1Clicked();
	afx_msg void OnBtn2Clicked();
	afx_msg void OnBtn3Clicked();
	afx_msg void OnGroup();
	afx_msg void OnTagdataStatistic();
	afx_msg void OnTagdataTagproperty();
public:
	BOOL		AddCard( unsigned int CardID, unsigned char AD );

	BOOL		GetCardHistoryData( unsigned CardID );

	BOOL		ConvertTemperaturyData( unsigned int StartTemperature, 
		unsigned int TemperatureCount, U8 ADVal, char* pTemperatureArray, 
		float** pTempertureData );

	void		StartWaitDlg();
	void		EndWaitDlg();

	void		SetRCLang( char nLang );

public:

	unsigned int		m_CardID[MAX_CARD_COUNT];
	CARD_AD				m_CardAD[MAX_CARD_COUNT];
	int					m_CardCount;
	unsigned char		m_CurrentAD;

	//	History data
	char				m_StartTime[6];	// 年 月 日 时 分 秒
	unsigned int		m_uiStartTime;
	int					m_TimeInterval;
	unsigned int		m_TemperatureCount;
	unsigned int		m_CurrentCardID;

	float*				m_pTemperatureData;
	float				m_HighTemperature;
	unsigned int		m_HighTempIndex;
	float				m_LowTemperature;
	unsigned int		m_LowTempIndex;
	double				m_SumTemperature;

	float				m_LimitLow;		// 警告温度下限
	float				m_LimitHigh;	// 警告温度上限
	//

	CDynamicData		m_DynamicData;	

	CImageList			m_ImageList;
	CBitmap				m_Bitmap;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
public:
	virtual void OnFinalRelease();
public:
	afx_msg void OnReturn();
public:
	afx_msg void OnReturnMain();
};


⌨️ 快捷键说明

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