?? prechild.h
字號:
#if !defined(AFX_PRECHILD_H__606BB42A_A2E1_476F_8B3E_F0AE1BA0372C__INCLUDED_)
#define AFX_PRECHILD_H__606BB42A_A2E1_476F_8B3E_F0AE1BA0372C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PreChild.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CPreChild dialog
typedef struct //定義報表結(jié)構(gòu)
{
CString title;
CListCtrl* list;//報表數(shù)據(jù)
}CPrintStruct;
class CPreChild : public CDialog
{
// Construction
public:
void SetScrollbar(int cx,int cy);
void DrawReport(HDC dc,CPrintStruct prstruct,bool printed =false);
HDC GetPrinterDC();
void PrintDoc();
CPreChild(CWnd* pParent = NULL); // standard constructor
int pagewidth,pagehigh;//紙張大小,以向素為單位
SCROLLINFO si;
int yPt ;
float rate; //屏幕每毫米像素數(shù)
float prate;//打印機(jī)每毫米像素數(shù)
CPrintStruct pstruct;
int leftmargin,topmargin; //打印紙左\上邊距
// Dialog Data
//{{AFX_DATA(CPreChild)
enum { IDD = IDD_PRECHILD_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPreChild)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CBitmap bitmap;
CBrush m_brush;
// Generated message map functions
//{{AFX_MSG(CPreChild)
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnDestroy();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PRECHILD_H__606BB42A_A2E1_476F_8B3E_F0AE1BA0372C__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -