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

📄 sheetview.h

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

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

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

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

// Attributes
public:

// 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(CSheetView)
	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 PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

	// Generated message map functions
protected:
	//{{AFX_MSG(CSheetView)
	afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnSheetCount();
	afx_msg void OnDeleteStudent();
	afx_msg void OnUpdateDeleteStudent(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
	CString m_strTeacher;
	CString m_strClass;

	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_SHEETVIEW_H__E8D3C46C_81EC_4C8C_B3E8_3C914A5B5929__INCLUDED_)

⌨️ 快捷键说明

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