// PrntView.h : interface of the CPrintingView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_PRINTINGVIEW_H__BDD7888E_3FB0_11D4_B4B3_0060087C0CAA__INCLUDED_) #define AFX_PRINTINGVIEW_H__BDD7888E_3FB0_11D4_B4B3_0060087C0CAA__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 typedef struct tagIMAGEZOOMFACT { int nZFact; } IMAGEZOOMFACT; class CPrintingDoc; class CPrintingView : public CScrollView { protected: // create from serialization only CPrintingView(); DECLARE_DYNCREATE(CPrintingView) // Attributes public: CPrintingDoc* GetDocument(); L_BOOL HandlePalette(UINT uMsg,HWND hwnd); // Operations public: LBitmapList m_bmpList; LBitmapBase m_bmpPreview; LBitmapBase m_LeadBmp; int m_nImgWidth; int m_nImgHeight; int m_nMaxHeight; int m_nMaxWidth; int m_nPrintWidth; int m_nPrintHeight; int m_nAspectWidth; int m_nAspectHeight; int m_nBmpCount; int m_nStart; BOOL m_bToolBar; BOOL m_bPreview; BOOL m_bIsOnePage; BOOL m_bMulti; BOOL m_bPrint; IMAGEZOOMFACT* m_pZoomFact; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPrintingView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: 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 // Implementation public: void ShowToolBar(BOOL bShow); void ClosePreview(); void FindMaxAspect(LBitmapBase* bmp); void GetPrintInfo(CDC* pDC,CPrintDialog* dlgPrt, CDC* dcPrint,LBitmapBase* bmp); void ShowBar(BOOL bShow); virtual ~CPrintingView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CPrintingView) afx_msg void OnFilePrint(); afx_msg void OnZoomOut(); afx_msg void OnZoomIn(); afx_msg void OnNormal(); afx_msg void OnViewZooming(); afx_msg void OnFilePrintPreview(); afx_msg void OnClosePreview(); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnUpdateFilePrintPreview(CCmdUI* pCmdUI); afx_msg void OnOnePage(); afx_msg void OnUpdateViewZooming(CCmdUI* pCmdUI); afx_msg void OnUpdateOnePage(CCmdUI* pCmdUI); afx_msg void OnPrevious(); afx_msg void OnNext(); afx_msg void OnUpdatePrevious(CCmdUI* pCmdUI); afx_msg void OnUpdateNext(CCmdUI* pCmdUI); afx_msg void OnPreviewPrevious(); afx_msg void OnPreviewNext(); afx_msg void OnUpdatePreviewNext(CCmdUI* pCmdUI); afx_msg void OnUpdatePreviewPrevious(CCmdUI* pCmdUI); afx_msg void OnViewMulti(); afx_msg void OnUpdateViewMulti(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomPane(CCmdUI* pCmdUI); afx_msg void OnUpdateWHPane(CCmdUI* pCmdUI); afx_msg void OnUpdateBppPane(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomIn(CCmdUI* pCmdUI); afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI); afx_msg void OnUpdateViewToolbar(CCmdUI* pCmdUI); afx_msg void OnViewToolbar(); //}}AFX_MSG afx_msg LRESULT OnHandlePalette(WPARAM wParam, LPARAM lParam); DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in PrintingView.cpp inline CPrintingDoc* CPrintingView::GetDocument() { return (CPrintingDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PRINTINGVIEW_H__BDD7888E_3FB0_11D4_B4B3_0060087C0CAA__INCLUDED_)