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.

42 lines
1.1 KiB

  1. // printres.h : interface of the Cprintres class
  2. //
  3. #define MARGINS_UNITS 2540 // Store hundredths of MM
  4. #define MARGINS_DEFAULT (MARGINS_UNITS * 3/4) // 3/4 inch default margins
  5. class CImgWnd;
  6. /***************************************************************************/
  7. class CPrintResObj : public CObject
  8. {
  9. DECLARE_DYNAMIC( CPrintResObj )
  10. public:
  11. CPrintResObj( CPBView* pView, CPrintInfo* pInfo );
  12. ~CPrintResObj();
  13. void BeginPrinting( CDC* pDC, CPrintInfo* pInfo );
  14. void PrepareDC ( CDC* pDC, CPrintInfo* pInfo );
  15. BOOL PrintPage ( CDC* pDC, CPrintInfo* pInfo );
  16. void EndPrinting ( CDC* pDC, CPrintInfo* pInfo );
  17. // Attributes
  18. CPBView* m_pView;
  19. LPVOID m_pDIB;
  20. LPVOID m_pDIBits;
  21. int m_iZoom;
  22. CPalette* m_pDIBpalette;
  23. CSize m_cSizeScroll;
  24. int m_iPicWidth;
  25. int m_iPicHeight;
  26. CRect m_rtMargins;
  27. CPoint m_PhysicalOrigin;
  28. CSize m_PhysicalScaledImageSize;
  29. CSize m_PhysicalPageSize;
  30. int m_nPagesWide;
  31. };
  32. /***************************************************************************/