📄 themeview.h
字号:
#if !defined(AFX_THEMEVIEW_H__29FA740C_BDCC_49BE_80F8_92221450A164__INCLUDED_)
#define AFX_THEMEVIEW_H__29FA740C_BDCC_49BE_80F8_92221450A164__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ThemeView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CThemeView view
#include "ListVwEx.h"
class CThemeView : public CListVwEx
{
protected:
CThemeView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CThemeView)
// 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 Calculate();
void PrintList(CDC *pDC);
int m_nThemeSum;
int m_nTypeSum[5];
int m_nKindSum[3];
int m_nResearchSum[3];
int m_nLevelSum[3];
int m_nTeacherSum;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CThemeView)
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 BOOL OnPreparePrinting(CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CThemeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CThemeView)
afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnStatistics();
//}}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_THEMEVIEW_H__29FA740C_BDCC_49BE_80F8_92221450A164__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -