// TwainDemo.h : main header file for the TWAINDEMO application // #if !defined(AFX_TWAINDEMO_H__3BDD0646_0A93_4D01_A36C_5D843C7FE4C0__INCLUDED_) #define AFX_TWAINDEMO_H__3BDD0646_0A93_4D01_A36C_5D843C7FE4C0__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 ///////////////////////////////////////////////////////////////////////////// // CTwainDemoApp: // See TwainDemo.cpp for the implementation of this class // class CTwainDemoApp : public CWinApp { public: CTwainDemoApp(); void CreateNewBitmapWindow(CString csCaption, LBitmapBase* pLBitmapSrc); void AddErrorToErrorsList(CString csError); void SetXferMode(); public: L_BOOL m_bTwainAvailable; L_TCHAR m_szCaption[255]; LUserBitmap m_LUserBitmap; LUserTwain m_MyTwain; CArray m_ErrorsList; L_INT m_nPageNum; L_UINT16 m_twXferMech; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTwainDemoApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CTwainDemoApp) 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 OnWindowCloseall(); 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_TWAINDEMO_H__3BDD0646_0A93_4D01_A36C_5D843C7FE4C0__INCLUDED_)