// PDFCompDemoView.h : interface of the CPDFCompDemoView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_PDFCOMPDEMOVIEW_H__C227AE93_5CEB_4517_A2E4_73C8030EF46E__INCLUDED_) #define AFX_PDFCOMPDEMOVIEW_H__C227AE93_5CEB_4517_A2E4_73C8030EF46E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CPDFCompDemoView : public CScrollView { protected: // create from serialization only CPDFCompDemoView(); DECLARE_DYNCREATE(CPDFCompDemoView) // Attributes public: CPDFCompDemoDoc* GetDocument(); CPalette* CreatePaintPalette(CDC *pDC); HPALETTE CreatePaintPalette(HDC hDC); L_VOID SizingWindow(); L_INT ApplyPDFSave(L_TCHAR *pFileName, pPDFCOMPSETTENGS pPDFSettings, L_INT nSize ); L_VOID ApplySort( pPDFCOMPSETTENGS pPDFSettings, L_INT nSize ); CRect m_StatusRect; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPDFCompDemoView) 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); //}}AFX_VIRTUAL // Implementation public: virtual ~CPDFCompDemoView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CPDFCompDemoView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnPdfcompOptionsAdd(); afx_msg void OnPdfcompOptionsDel(); afx_msg void OnPdfcompOptionsMod(); afx_msg void OnUpdatePdfcompOptionsDel(CCmdUI* pCmdUI); afx_msg void OnUpdatePdfcompOptionsAdd(CCmdUI* pCmdUI); afx_msg void OnUpdatePdfcompOptionsMod(CCmdUI* pCmdUI); afx_msg void OnPdfOpAdd(); afx_msg void OnPdfOpDel(); afx_msg void OnPdfOpMod(); afx_msg void OnUpdatePdfOpAdd(CCmdUI* pCmdUI); afx_msg void OnUpdatePdfOpDel(CCmdUI* pCmdUI); afx_msg void OnUpdatePdfOpMod(CCmdUI* pCmdUI); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnFileSaveAll(); afx_msg void OnFilePrintPreview(); afx_msg void OnPdfcompOptionsAdvance(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in PDFCompDemoView.cpp inline CPDFCompDemoDoc* CPDFCompDemoView::GetDocument() { return (CPDFCompDemoDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PDFCOMPDEMOVIEW_H__C227AE93_5CEB_4517_A2E4_73C8030EF46E__INCLUDED_)