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

📄 scoreview.h

📁 我上载了那么多怎么都说已经有上载的啦
💻 H
字号:
#if !defined(AFX_SCOREVIEW_H__C3916D80_2903_4029_944D_3AEE42E73EFC__INCLUDED_)
#define AFX_SCOREVIEW_H__C3916D80_2903_4029_944D_3AEE42E73EFC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ScoreView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CScoreView view
#include "ListVwEx.h"

class CScoreView : public CListVwEx
{
protected:
	CScoreView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CScoreView)

// Attributes
public:
	int m_nSum;
	int m_nScoreSum[6];

// Operations
public:
	void DrawLabel();
	void DrawList();

	void SetTeacher(const CString& strTeacher) {
		m_strTeacher = strTeacher;
	}
	CString GetTeacher() const {
		return m_strTeacher;
	}
	void SetClass(const CString& strClass) {
		m_strClass = strClass;
	}
	CString GetClass() const {
		return m_strClass;
	}

	void PrintList(CDC *pDC);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CScoreView)
	public:
	virtual void OnInitialUpdate();
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CScoreView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CScoreView)
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnStatistics();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CString m_strTeacher;
	CString m_strClass;

	void Calculate();

	CFont m_ftFont, m_ftTitleFont;
	long m_lHeight;
	long m_lWidth;
	int m_nYPage;
	int m_nXPage;
	int m_nPageHeight;
	int m_nPageWidth;
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SCOREVIEW_H__C3916D80_2903_4029_944D_3AEE42E73EFC__INCLUDED_)

⌨️ 快捷键说明

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