// OCRMemView.h : interface of the COCRMemView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_OCRMEMVIEW_H__2873A9F3_B928_4508_9064_E696A4432607__INCLUDED_) #define AFX_OCRMEMVIEW_H__2873A9F3_B928_4508_9064_E696A4432607__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class COCRMemView : public CScrollView { protected: // create from serialization only COCRMemView(); DECLARE_DYNCREATE(COCRMemView) // Attributes public: COCRMemDoc* GetDocument(); void CleanOpenDlgParam(LPOPENDLGPARAMS pFOParam); void UpdateScrollView(); void Reset(); // Operations public: BITMAPHANDLE m_LEADBitmap; L_HDOC m_hDoc; L_BOOL m_bPageAdded; L_BOOL m_bRecog; HPEN m_hZonePen; HPEN m_hSelZonePen; HPALETTE m_hPalette; CString m_csImagesPath; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(COCRMemView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // user message // Implementation public: virtual ~COCRMemView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(COCRMemView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnFileOpen(); afx_msg void OnFileSave(); afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI); afx_msg void OnOcrAddpage(); afx_msg void OnUpdateOcrAddpage(CCmdUI* pCmdUI); afx_msg void OnOcrRecognize(); afx_msg void OnUpdateOcrRecognize(CCmdUI* pCmdUI); afx_msg void OnOcrSaveresultstomemory(); afx_msg void OnUpdateOcrSaveresultstomemory(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in OCRMemView.cpp inline COCRMemDoc* COCRMemView::GetDocument() { return (COCRMemDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_OCRMEMVIEW_H__2873A9F3_B928_4508_9064_E696A4432607__INCLUDED_)