// PDFCompDemoView.h : interface of the CPDFCompDemoView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_PDFCOMPDEMOVIEW_H__1DBD5BFD_BC41_4AD8_894E_8AE27F93202E__INCLUDED_) #define AFX_PDFCOMPDEMOVIEW_H__1DBD5BFD_BC41_4AD8_894E_8AE27F93202E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class UserBitmapWindow : public LBitmapWindow { public: RECT m_rcKeyRect; CPDFCompDemoDoc* pDoc ; UserBitmapWindow(); L_VOID OnSize(UINT state, int cx, int cy); L_VOID OnDraw(HDC hdc,RECT& Rect) ; }; class CPDFCompDemoView : public CView { protected: // create from serialization only CPDFCompDemoView(); DECLARE_DYNCREATE(CPDFCompDemoView) // Attributes public: L_INT ApplyPDFSave(L_TCHAR* pFileName, pPDFCOMPSETTENGS pPDFSettings, L_INT nSize ); L_VOID ApplySort( pPDFCOMPSETTENGS pPDFSettings, L_INT nSize ); CRect m_StatusRect; UserBitmapWindow m_LBitmapWnd; CPDFCompDemoDoc* GetDocument(); // 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); virtual void OnInitialUpdate(); virtual BOOL DestroyWindow(); 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 afx_msg LRESULT OnHandlePalette(WPARAM wParam, LPARAM lParam); // 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 OnFileSavealladdedfiles(); afx_msg void OnOptionsAddimage(); afx_msg void OnOptionsAdvanced(); afx_msg void OnOptionsModify(); afx_msg void OnUpdateOptionsModify(CCmdUI* pCmdUI); afx_msg void OnOptionsDelete(); afx_msg void OnUpdateOptionsDelete(CCmdUI* pCmdUI); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnPaint(); afx_msg void OnFilePrintPreview(); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnUpdateOptionsAddimage(CCmdUI* pCmdUI); //}}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__1DBD5BFD_BC41_4AD8_894E_8AE27F93202E__INCLUDED_)