// OCRUTIL.h : main header file for the OCRUTIL application // #if !defined(AFX_OCRUTIL_H__D185B494_9B02_46C6_9F0C_CB645117E8D1__INCLUDED_) #define AFX_OCRUTIL_H__D185B494_9B02_46C6_9F0C_CB645117E8D1__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 ///////////////////////////////////////////////////////////////////////////// // CAsciiEdit Edit box #ifdef UNICODE class CAsciiEdit : public CEdit { // Construction public: CAsciiEdit(); // standard constructor virtual ~CAsciiEdit(); private: BOOL CheckText ( CString &str ) ; BOOL CheckPasteText ( ) ; protected: virtual LRESULT WindowProc ( UINT message, WPARAM wParam, LPARAM lParam ) ; }; #endif ///////////////////////////////////////////////////////////////////////////// // COCRUtilApp: // See OCRUTIL.cpp for the implementation of this class // class COCRUtilApp : public CWinApp { public: COCRUtilApp(); void AddTwainImage(); void CleanOpenDlgParam(LPOPENDLGPARAMS pFOParam); CString GetLanguageName(LANGIDS LangId); L_INT m_nPageMode; HTWAINSESSION m_hTwnSession; L_BOOL m_bTwnExist; L_INT m_nPageNum; BITMAPHANDLE m_Bitmap; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(COCRUtilApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(COCRUtilApp) afx_msg void OnAppAbout(); afx_msg void OnFileOpen(); afx_msg void OnEditPaste(); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_OCRUTIL_H__D185B494_9B02_46C6_9F0C_CB645117E8D1__INCLUDED_)