?? drawdlg.h
字號:
// DrawDlg.h: interface for the CDrawDlg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAWDLG_H__8CA9ACA2_3A59_4996_9DAD_124CFEE21CB0__INCLUDED_)
#define AFX_DRAWDLG_H__8CA9ACA2_3A59_4996_9DAD_124CFEE21CB0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPreView;
class CDrawDlg
{
public:
CDrawDlg();
virtual ~CDrawDlg();
int GetTotalChars()const;
int GetMaxPages() const;
virtual CListCtrl* GetListCtrl()=0;
long CalcUnitWidth();
bool InitData(int xPix,int yPix,int ypixperi, CDC *pDC, CPrintInfo *pInfo, CListCtrl *m_list);
bool InitData(CDC* pDC, CPrintInfo *pInfo,CListCtrl* m_list);
void OnBeginPrinting(CDC *pDC, CPrintInfo *pInfo);
void PaintDlg(CDC* pDC,CPrintInfo* pInfo);
void DrawListItems(CDC*pDC,int iCurPage,CPoint ptLeftCurPos,CPoint ptRightCurPos,CListCtrl *m_pList);
void PrintPageHeader(CDC* pDC, CPrintInfo* pInfo,CString header);
void PrintPageFooter(CDC* pDC, CPrintInfo* pInfo);
virtual void PrintDlg(CDC* pDC, CPrintInfo* pInfo)=0;
virtual void PrintPageHeader(CDC* pDC, CPrintInfo* pInfo)=0;
int m_iMaxPages; //保存最大頁碼
int m_iMinPages; //保存最小頁碼
int m_iFontHeight; //字高==1/6 inch
int m_iHeadHeight; //標題高==1/2 inch
int m_iFootHeight; //頁腳高==1/2 inch
int m_iLeftMargin; //左邊距
int m_iRightMargin; //右邊距
int m_iLineHeight; //行高==1/3 inch
int m_iLinesPage; //可容納的行數(包括頁眉,頁腳)
int m_iLinesTotal; //頁眉占兩行
CSize* m_rangePageItems; //每頁顯示的行數(from x to y);
CFont* m_pOldFont;
CFont * m_pGeneralFont;
CFont * m_pHeadFont; //字高==1/3 inch
CFont * m_pFootFont; //字高==1/6 inch
int m_nColumns; //列數
int m_iHaveColumnsTitle;//是否每頁有列標題
int m_nSmallTilte; //小標題的行數例如:日期,編號......
CString* m_pstrColumnTitle; //每列標題
int* m_piCharsColumns; //每列最大的字符數
int* m_piWidthColumns; //每列寬度
int m_iTitleLines; //標題占的行數
int m_iFootLines; //頁腳站的行數
};
#endif // !defined(AFX_DRAWDLG_H__8CA9ACA2_3A59_4996_9DAD_124CFEE21CB0__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -