⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prechild.h

📁 主要功能 企业仓库管理系统由基本信息管理模块、入库管理模块、库存管理模块、查询管理模块等几部分组成。 &#61553 基本信息管理模块 该模块主要包括操作员管理、商品信息管理、库存信息管理、供
💻 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  //定义报表结构
{
	CString title;
	CListCtrl* list;//报表数据
}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; //屏幕每毫米像素数
	float prate;//打印机每毫米像素数
	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_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -