📄 wageview.h
字号:
#if !defined(AFX_WAGEVIEW_H__21432DCC_3F37_4867_9AAE_AE9D4974F96E__INCLUDED_)
#define AFX_WAGEVIEW_H__21432DCC_3F37_4867_9AAE_AE9D4974F96E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WageView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWageView view
typedef struct ST_WAGEITEM
{
CString strName; // 名称*
CString strCode; // 编码*
CString strGrade; // 卡号*
CString strAdRate1; // 一部广告费*
CString strAdRate2; // 二部广告费*
CString strFlack; // 宣传费*
CString strSpareRate1; // 一部广告费余额*
CString strSpareRate2; // 二部广告费余额*
CString strExtend; // 推广费*
CString strSubsidy; // 督导津贴*
CString strAegis; // 品牌维护费*
CString strWelfare; // 福利待遇*
CString strComputer; // 电脑费
CString strFrontTax; // 税前应发
CString strTax; // 税金
CString strAfterTax; // 税后应发
CString strRemark; // 备注
} ST_WAGEITEM;
class CWageView : public CView
{
protected:
CWageView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CWageView)
// Attributes
public:
protected:
CPtrArray m_arContent;
CFont m_ftTitle;
CFont m_ftContent;
CString m_strStartDate;
CString m_strEndDate;
CString m_strDateTitle;
int m_nOffsetX;
int m_nOffsetY;
int m_nLinePerPage;
BOOL m_bPreview;
// Operations
public:
void OutWageItem( int cx, int cy, CDC * pDC, ST_WAGEITEM *pItem );
void RemoveAlls();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWageView)
public:
virtual void OnInitialUpdate();
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrintPreview(CDC* pDC, CPrintInfo* pInfo, POINT point, CPreviewView* pView);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CWageView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
void CalcScroll();
//{{AFX_MSG(CWageView)
afx_msg void OnDestroy();
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnBtQuery();
afx_msg void OnBtPrintpreview();
afx_msg void OnBtPrint();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WAGEVIEW_H__21432DCC_3F37_4867_9AAE_AE9D4974F96E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -