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

📄 rangertestdlg.h

📁 支票扫描仪协议Ranger的应用.使用vc7.1
💻 H
字号:
// RangerTestDlg.h : header file
//

#pragma once
#include "RangerEventObserver.h"
#include "RangerManager.h"
#include "afxwin.h"
#include "RangerParameterGeneric.h"

// CRangerTestDlg dialog
class CRangerTestDlg : 
	public CDialog,
	public IRangerEventObserver
{
// Construction
public:
	CRangerTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_RANGERTEST_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON					m_hIcon;
	CRangerManager			m_RangerMgr;
	CRangerParameterGeneric	m_RangerParameter;
	TransportState			m_TransportState;
	int						m_nPageReadCount;
	int						m_nPageHandleCount;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()

	void UpdateButtons();

public:
	// override by IRangerEventObserver
public:
	virtual DWORD OnSessionBegin(const RANGER_SESSION_BEGIN_INFO& info);


	virtual DWORD OnPageBegin(const RANGER_PAGE_BEGIN_INFO& info);
	virtual DWORD OnPageEnd(const RANGER_PAGE_END_INFO& info);

	virtual DWORD OnImageData(const RANGER_IMAGE_DATA_INFO& info);

	virtual DWORD OnImageError();

	virtual DWORD OnSessionEnd(const RANGER_SESSION_END_INFO& info);

	virtual DWORD OnError(const RANGER_ERROR& error);

	virtual DWORD OnImageFileBegin(RANGER_IMAGEFILE_BEGIN_INFO& info);

	virtual DWORD OnImageFileEnd(RANGER_IMAGEFILE_END_INFO& info);


	// Device Event
	virtual DWORD OnDeviceStartUp();
	virtual DWORD OnPrepareFeeding();
	virtual DWORD OnTransprtStateChanged(const TransportState& state);
	virtual DWORD OnDeviceShutDown();

	afx_msg void OnBnClickedStartup();
	afx_msg void OnBnClickedStartcapture();
	afx_msg void OnBnClickedStopcapture();
	afx_msg void OnBnClickedSetup();
	afx_msg void OnBnClickedShutdown();

	CEdit m_editSessionOutput;
};

class SSessionInfoEditHelper
{
public:
	static void Clear(CEdit* pEdit);
	static void Append(CEdit* pEdit,LPCSTR lpszInfo);
};

⌨️ 快捷键说明

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