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

📄 invoicedlg.h

📁 一款很好用的商业电子发票的打印程序。办公电子化必备软件
💻 H
字号:
// invoiceDlg.h : header file
//

#if !defined(AFX_INVOICEDLG_H__53653BD9_42B7_4728_8BE3_C7C97C425E82__INCLUDED_)
#define AFX_INVOICEDLG_H__53653BD9_42B7_4728_8BE3_C7C97C425E82__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CInvoiceDlg dialog
struct COMMODITY
{
	//商品名称
	char	m_CommodityName[30];
	//商品规格
	char	m_Specification[30];
	//商品单位
	char	m_Unit[5];
	//商品数量
	int		m_Number;
	//商品单价
	float	m_UnitPrice;
	//商品金额
	int		m_Sum;
};

struct INVOICEDATA
{
	//三项商品
	struct COMMODITY m_Commodity[3];
	//客户名称
	char	m_CustomerName[30];
	//开票人
	char	m_BossName[30];
	//所有商品总售价
	int		m_SumMoney;
	//商品序号
	int sn;
};

//方位信息
typedef struct 
{
	int x;
	int y;
} INVOICE_POSITION;

typedef struct 
{
	//发票尺寸190*104
	INVOICE_POSITION Size;
	//发票标题
	INVOICE_POSITION Caption;
	//横线
	INVOICE_POSITION Line;
	//联别
	INVOICE_POSITION InvoicePage;
	//客户名称标题
	INVOICE_POSITION CustomerCaption;
	//客户名称
	INVOICE_POSITION CustomerName;
	//发票表格
	RECT  form;
	//开票单位
	INVOICE_POSITION Company;
	//开票人
	INVOICE_POSITION Invoiceman;
}ORIENT;
class CInvoiceDlg : public CDialog
{
// Construction
public:
	CInvoiceDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CInvoiceDlg)
	enum { IDD = IDD_INVOICE_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CInvoiceDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	//发票信息
	struct INVOICEDATA InvoiceData;
	CRect m_bitmapRect;
	float rato;
	ORIENT Orient;

	BOOL Draw(CDC* pDC,CRect *bitmapRect);
	void GetInfo();
	// Generated message map functions
	//{{AFX_MSG(CInvoiceDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAddCommodityButton();
	afx_msg void OnReworkButton();
	afx_msg void OnDecCommodityButton();
	afx_msg void OnPrintButton();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INVOICEDLG_H__53653BD9_42B7_4728_8BE3_C7C97C425E82__INCLUDED_)

⌨️ 快捷键说明

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