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

📄 tcscandlg.h

📁 通用的扫描仪测试接口
💻 H
字号:
// TcScanDlg.h : header file
//

#if !defined(AFX_TCSCANDLG_H__9FDC481E_0893_4E05_82A8_9619F19F4633__INCLUDED_)
#define AFX_TCSCANDLG_H__9FDC481E_0893_4E05_82A8_9619F19F4633__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTcScanDlg dialog

#define	ID_STATUS_TIMER		110						// 自定义时钟
#define	ALL_RIGHT_STRING	"成功加载TcScan.DLL驱动程序,您可以继续进行各项扫描测试!"
static const int g_nScanWidth[3] = {297, 210, 182};	// 标准纸宽度
static const int g_nScanHeight[3] = {420, 297, 257};// 标准纸高度

class CTcScanDlg : public CDialog
{
// Construction
public:
	CTcScanDlg(CWnd* pParent = NULL);	// standard constructor
	void MsgOut(const char *fmt, ...);
	void TimeOut(const char *fmt, ...);

// Dialog Data
	//{{AFX_DATA(CTcScanDlg)
	enum { IDD = IDD_TCSCAN_DIALOG };
	BOOL	m_bCheckScanner;
	int		m_nScanOperate;
	int		m_nSlctPageSize;
	int		m_nImageColor;
	int		m_nScanWidth;
	int		m_nScanTop;
	int		m_nScanLeft;
	int		m_nScanHeight;
	int		m_nScanBright;
	int		m_nScanContrast;
	int		m_nScanDPI;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTcScanDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CBrush m_BackBrush;
	BOOL m_bDriverGood;
	char m_chInfoBuff[1024];
	char m_chSaveAs[MAX_PATH];

	// Generated message map functions
	//{{AFX_MSG(CTcScanDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnButtSlctfile();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnButtScanner();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnOK();
	afx_msg void OnSelchangeSlctPagesize();
	afx_msg void OnButtDefault();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TCSCANDLG_H__9FDC481E_0893_4E05_82A8_9619F19F4633__INCLUDED_)

⌨️ 快捷键说明

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