// RecCharsView.h : interface of the CRecCharsView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_RECCHARSVIEW_H__C42A54EB_19F6_46B9_A10B_260A3B104C5C__INCLUDED_) #define AFX_RECCHARSVIEW_H__C42A54EB_19F6_46B9_A10B_260A3B104C5C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CRecCharsView : public CScrollView { protected: // create from serialization only CRecCharsView(); DECLARE_DYNCREATE(CRecCharsView) // Attributes public: CRecCharsDoc* 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; L_BOOL m_bUpdateChars; HPEN m_hZonePen; HPEN m_hSelZonePen; HPALETTE m_hPalette; CString m_csImagesPath; CString m_csRDFile; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CRecCharsView) 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 ~CRecCharsView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CRecCharsView) 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 OnOcrGetrecognizedcharacters(); afx_msg void OnUpdateOcrGetrecognizedcharacters(CCmdUI* pCmdUI); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnDestroy(); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnOcrSaveresults(); afx_msg void OnUpdateOcrSaveresults(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in RecCharsView.cpp inline CRecCharsDoc* CRecCharsView::GetDocument() { return (CRecCharsDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_RECCHARSVIEW_H__C42A54EB_19F6_46B9_A10B_260A3B104C5C__INCLUDED_)