You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <afxwin.h>
|
|
|
|
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
struct PrintPartition
|
|
|
|
|
|
{
|
|
|
|
|
|
int bPartitin;
|
|
|
|
|
|
int kind; //0 <20><><EFBFBD>ַ<EFBFBD> 1 ȫ<><C8AB><EFBFBD>ַ<EFBFBD> 2 <20><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD> 3 <20><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
|
|
|
|
|
|
int row; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31>ʼ
|
|
|
|
|
|
int col; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31>ʼ
|
|
|
|
|
|
int supperPosition;
|
|
|
|
|
|
//--------------
|
|
|
|
|
|
//<2F><><EFBFBD>Ǵ<EFBFBD>ӡ<EFBFBD><D3A1><EFBFBD><EFBFBD>ӡԤ<D3A1><D4A4><EFBFBD><EFBFBD>ʹ<EFBFBD>õĸ<C3B5><C4B8><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
|
int bPreview; //0 <20><>ӡԤ<D3A1><D4A4> 1 <20><>ӡ
|
|
|
|
|
|
int currentPage; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><31>ʼ
|
|
|
|
|
|
int countOfPage; //<2F><>ҳ<EFBFBD><D2B3>
|
|
|
|
|
|
};
|
|
|
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
|
|
|
|
class CSigmaDoc;
|
|
|
|
|
|
class CPrintTool
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CPrintTool(CSigmaDoc * pDoc);
|
|
|
|
|
|
void ViewAll(CDC* pDC);
|
|
|
|
|
|
bool GetPartitionNum(int &rowOut, int & colOut, int superpositionWidth);
|
|
|
|
|
|
bool Part(PrintPartition * partition);
|
|
|
|
|
|
private:
|
|
|
|
|
|
CRect GetPrintArea(CDC* pDC);
|
|
|
|
|
|
private:
|
|
|
|
|
|
CSigmaDoc * m_pDoc;
|
|
|
|
|
|
};
|