Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. // MSIView.h : interface of the CMSIShellView class
  2. //
  3. // Copyright (c) 1998-1999 Microsoft Corporation
  4. /////////////////////////////////////////////////////////////////////////////
  5. #pragma once // MSINFO_PRINT_H
  6. #include "FileIO.h"
  7. class CPrintView : public CView
  8. {
  9. protected: // create from serialization only
  10. CPrintView();
  11. DECLARE_DYNCREATE(CPrintView)
  12. // Attributes
  13. public:
  14. // CMSIShellDoc* GetDocument();
  15. #if 0
  16. CMemFile * m_pPrintContent;
  17. #else
  18. CMSInfoFile *m_pPrintContent;
  19. #endif
  20. BOOL m_fEndOfFile;
  21. CString m_strHeaderLeft;
  22. CString m_strHeaderRight;
  23. CString m_strFooterCenter;
  24. CFont m_printerFont;
  25. // Operations
  26. public:
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CMSIShellView)
  30. public:
  31. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  34. protected:
  35. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  36. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  37. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  38. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  39. virtual void OnPrepareDC( CDC* pDC, CPrintInfo* pInfo = NULL );
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. public:
  43. virtual ~CPrintView();
  44. #ifdef _DEBUG
  45. virtual void AssertValid() const;
  46. virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48. protected:
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CPrintView)
  52. afx_msg void OnSize(UINT nType, int cx, int cy);
  53. afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
  54. afx_msg void OnSetFocus(CWnd* pOldWnd);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. };