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
42 lines
1.1 KiB
// printres.h : interface of the Cprintres class
|
|
//
|
|
|
|
#define MARGINS_UNITS 2540 // Store hundredths of MM
|
|
#define MARGINS_DEFAULT (MARGINS_UNITS * 3/4) // 3/4 inch default margins
|
|
|
|
class CImgWnd;
|
|
|
|
/***************************************************************************/
|
|
|
|
class CPrintResObj : public CObject
|
|
{
|
|
DECLARE_DYNAMIC( CPrintResObj )
|
|
|
|
public:
|
|
|
|
CPrintResObj( CPBView* pView, CPrintInfo* pInfo );
|
|
~CPrintResObj();
|
|
|
|
void BeginPrinting( CDC* pDC, CPrintInfo* pInfo );
|
|
void PrepareDC ( CDC* pDC, CPrintInfo* pInfo );
|
|
BOOL PrintPage ( CDC* pDC, CPrintInfo* pInfo );
|
|
void EndPrinting ( CDC* pDC, CPrintInfo* pInfo );
|
|
|
|
// Attributes
|
|
|
|
CPBView* m_pView;
|
|
LPVOID m_pDIB;
|
|
LPVOID m_pDIBits;
|
|
int m_iZoom;
|
|
CPalette* m_pDIBpalette;
|
|
CSize m_cSizeScroll;
|
|
int m_iPicWidth;
|
|
int m_iPicHeight;
|
|
CRect m_rtMargins;
|
|
CPoint m_PhysicalOrigin;
|
|
CSize m_PhysicalScaledImageSize;
|
|
CSize m_PhysicalPageSize;
|
|
int m_nPagesWide;
|
|
};
|
|
|
|
/***************************************************************************/
|