// ZonesView.h : interface of the CZonesView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_ZONESVIEW_H__ABD26B93_F7BE_44EB_8F59_A624F12CF70A__INCLUDED_) #define AFX_ZONESVIEW_H__ABD26B93_F7BE_44EB_8F59_A624F12CF70A__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CZonesView : public CScrollView { protected: // create from serialization only CZonesView(); DECLARE_DYNCREATE(CZonesView) // Attributes public: CZonesDoc* GetDocument(); void CleanOpenDlgParam(LPOPENDLGPARAMS pFOParam); void UpdateScrollView(); void ShowSelectedZoneInfo(); void Reset(); // Operations public: BITMAPHANDLE m_LEADBitmap; L_HDOC m_hDoc; L_BOOL m_bPageAdded; L_BOOL m_bZones; HPEN m_hZonePen; HPEN m_hSelZonePen; HPALETTE m_hPalette; L_BOOL m_bSelectZone; L_INT m_nSelZoneIndex; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CZonesView) 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 ~CZonesView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CZonesView) 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 OnOcrFindzones(); afx_msg void OnUpdateOcrFindzones(CCmdUI* pCmdUI); afx_msg void OnOcrGetzonescount(); afx_msg void OnUpdateOcrGetzonescount(CCmdUI* pCmdUI); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in ZonesView.cpp inline CZonesDoc* CZonesView::GetDocument() { return (CZonesDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ZONESVIEW_H__ABD26B93_F7BE_44EB_8F59_A624F12CF70A__INCLUDED_)