// Twain.h : main header file for the TWAIN application // #if !defined(AFX_TWAIN_H__D9C43113_4612_4FF7_8E0A_22AD3E531F57__INCLUDED_) #define AFX_TWAIN_H__D9C43113_4612_4FF7_8E0A_22AD3E531F57__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols class CRasterTwainSink; ///////////////////////////////////////////////////////////////////////////// // CTwainApp: // See Twain.cpp for the implementation of this class // class CTwainApp : public CWinApp { public: CTwainApp(); void CreateNewChild(); void AddErrorToErrorsList(CString csError); void SetXferMode(); ILEADRasterDlgKrn * m_pRasterKrnDlg; ILEADRasterDlgFile * m_pRasterFileDlg; ILEADRasterIO * m_pRasterIO; ILEADRasterTwain * m_pRasterTwain; CRasterTwainSink * m_pRasterTwainSink; DWORD m_dwCookie; ILEADRaster * m_pRaster; CArray m_ErrorsList; int m_nPageNum; BOOL m_bTwainAvailable; long m_twXferMech; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTwainApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CTwainApp) afx_msg void OnAppAbout(); afx_msg void OnFileOpen(); afx_msg void OnTwainSelectSource(); afx_msg void OnUpdateTwainSelectSource(CCmdUI* pCmdUI); afx_msg void OnTwainAcquire(); afx_msg void OnUpdateTwainAcquire(CCmdUI* pCmdUI); afx_msg void OnTemplateLeadTemplate(); afx_msg void OnUpdateTemplateLeadTemplate(CCmdUI* pCmdUI); afx_msg void OnTemplateShowErrorCodes(); afx_msg void OnUpdateTemplateShowErrorCodes(CCmdUI* pCmdUI); afx_msg void OnTemplateShowSupportedCapabilities(); afx_msg void OnUpdateTemplateShowSupportedCapabilities(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TWAIN_H__D9C43113_4612_4FF7_8E0A_22AD3E531F57__INCLUDED_)