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

📄 setscanner.h

📁 又VC++实现的基于TWAIN的扫描仪图像输入处理软件
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////
// CSetScanner dialog
/////////////////////////////////////////////////////////////////////////////

class CSetScanner : public CDialog
{
public:
	CSetScanner(CWnd* pParent = NULL);   
	//{{AFX_DATA(CSetScanner)
	    enum { IDD = IDD_DIALOG_PREVIEW };
   	//}}AFX_DATA
	//{{AFX_VIRTUAL(CSetScanner)
	    protected:
	      virtual void DoDataExchange(CDataExchange* pDX);  
	//}}AFX_VIRTUAL
  
   CToolBar m_wndToolBar;   
protected:
	//CToolTipCtrl m_tooltip;
	//{{AFX_MSG(CSetScanner)
	  virtual void OnOK();
      virtual BOOL OnInitDialog();
      afx_msg BOOL OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult);
	  virtual void OnCancel();
      afx_msg void OnPreview();
	  afx_msg void OnHelpAbout();
 	  afx_msg void OnShowSettingsWindow();
	  afx_msg void OnViewHidethesettingwindow();
      afx_msg void OnAspiInitialize();
      afx_msg void OnButtonHelp();
	  afx_msg void OnHelpContent();
	  afx_msg void OnScannerGettheinfoofcurrentscanner();
      afx_msg void OnScannerGettheinfoofcurrentscsi();
	  afx_msg void OnScannerExit();
	  afx_msg void OnSize(UINT nType, int cx, int cy);
	  afx_msg void OnRead2();
	  afx_msg void OnJieMian();
	  afx_msg void OnHand();
	  afx_msg void OnSelect();
	  afx_msg void OnZoomin();
  	  afx_msg void OnZoomout();
	  afx_msg void On300();
	  afx_msg void On600();
	  afx_msg void On800();
	  afx_msg void On1200();
	  afx_msg void On1000();
	  afx_msg void On1whiteblack();
	  afx_msg void On24color();
	  afx_msg void On8gray();
	  afx_msg void OnColorb();
	  afx_msg void OnColorg();
	  afx_msg void OnColorr();
      afx_msg void OnPingqi();
      afx_msg void OnTwainScan();
      afx_msg void OnFileScan();
      afx_msg void OnHuiGuiL();
      afx_msg void OnHuiGuiM();
      afx_msg void OnHuiGuiJ();
	  afx_msg void OnMove();
	  afx_msg void OnMoveweizhi();
	afx_msg void OnJZMode0();
	afx_msg void OnJZMode1();
	afx_msg void OnJZMode2();
	afx_msg void OnJZMode3();
	afx_msg void OnJZMode4();
	afx_msg void OnJZMode5();
	afx_msg void OnJZMode6();
	afx_msg void OnJZMode7();
	afx_msg void On100();
	afx_msg void On200();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	void OnInitialize();
	CRect	Rect;		


public:
  	void SetWindow(int n,int m);
	int  Scan_JZMode();
	void cunchu(int length,int n);
	void OnReadPicFromDisk();
	void BoxDone(int nID);
	void OnReadPicFromFile();
	bool cishu;
	void SCSI_Read(LPSTR lp,int bytes,int bytes1,int n,int m);
	
	void SCSI_TST();
	void SCSI_CHECK();
    void SCSI_Start();
	//0:归零,1:静止不动 2:中间位置
	void SCSI_End(int n);
/*
    void CSetScanner::SCSI_Adapter_Check();
*/

	void CCD_CHECK(int check);
	void CCD_JIAOZHENG(int check);
	
    void shuzu(int width,int reso);

	BOOL m_nBack;
	BOOL m_nGo;

	long CSetScanner::OnMyInitialization(WPARAM  wFactor,LPARAM lparam);
	BOOL m_bModal;
    BOOL bFirst;
    int  ASPI_Host_Adapter_ID;
	CFile PreviewBitmap;

    int jiou[3000];

};

⌨️ 快捷键说明

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