// MICRView.h : interface of the CMICRView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MICRVIEW_H__57BD4C58_C180_41DF_9B79_D727871232DA__INCLUDED_) #define AFX_MICRVIEW_H__57BD4C58_C180_41DF_9B79_D727871232DA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CMICRView : public CScrollView { protected: // create from serialization only CMICRView(); DECLARE_DYNCREATE(CMICRView) // Attributes public: CMICRDoc* 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(CMICRView) 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 ~CMICRView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CMICRView) afx_msg void OnFileOpen(); afx_msg void OnFileSave(); afx_msg void OnAddpage(); afx_msg void OnUpdateAddpage(CCmdUI* pCmdUI); afx_msg void OnOcrmicr(); afx_msg void OnUpdateOcrmicr(CCmdUI* pCmdUI); afx_msg void OnSaveresults(); afx_msg void OnUpdateSaveresults(CCmdUI* pCmdUI); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI); afx_msg BOOL OnEraseBkgnd(CDC* pDC); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in MICRView.cpp inline CMICRDoc* CMICRView::GetDocument() { return (CMICRDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MICRVIEW_H__57BD4C58_C180_41DF_9B79_D727871232DA__INCLUDED_)