// ABCView.h : interface of the CABCView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadrasterview.h" //}}AFX_INCLUDES #if !defined(AFX_ABCVIEW_H__9F908727_146A_4F86_89E1_FD2833D40586__INCLUDED_) #define AFX_ABCVIEW_H__9F908727_146A_4F86_89E1_FD2833D40586__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CABCView : public CFormView { protected: // create from serialization only CABCView(); DECLARE_DYNCREATE(CABCView) public: //{{AFX_DATA(CABCView) enum { IDD = IDD_ABCDEMO_FORM }; CLEADRasterView m_LEADRasterView; //}}AFX_DATA int m_nZoom; int m_nViewMode; // Attributes public: CABCDoc* GetDocument(); void SetZoom(int nZoom); void FitImageToWindow(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CABCView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 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 OnPrint(CDC* pDC, CPrintInfo* pInfo); virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint); //}}AFX_VIRTUAL // Implementation public: virtual ~CABCView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CABCView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnViewNormal(); afx_msg void OnUpdateViewNormal(CCmdUI* pCmdUI); afx_msg void OnViewFitimagetowindow(); afx_msg void OnUpdateViewFitimagetowindow(CCmdUI* pCmdUI); afx_msg void OnViewSnapwindowtoimage(); afx_msg void OnUpdateViewSnapwindowtoimage(CCmdUI* pCmdUI); afx_msg void OnViewZoomin2x(); afx_msg void OnViewZoomout2x(); afx_msg void OnFileSaveAs(); afx_msg void OnFileSaveMultiPage(); afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI); afx_msg void OnUpdateFileSaveMultiPage(CCmdUI* pCmdUI); afx_msg void OnFileSaveAsTiff(); afx_msg void OnUpdateFileSaveAsTiff(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in ABCView.cpp inline CABCDoc* CABCView::GetDocument() { return (CABCDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_ABCVIEW_H__9F908727_146A_4F86_89E1_FD2833D40586__INCLUDED_)