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

📄 lessonview.h

📁 为学校教导用的排课系统。
💻 H
字号:
// LessonView.h : interface of the CLessonView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LESSONVIEW_H__D25F2ACD_4852_11D8_A1D7_C40994B57700__INCLUDED_)
#define AFX_LESSONVIEW_H__D25F2ACD_4852_11D8_A1D7_C40994B57700__INCLUDED_

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


class CLessonView : public CListView
{
protected: // create from serialization only
	CLessonView();
	DECLARE_DYNCREATE(CLessonView)

// Attributes
public:
	CLessonDoc* GetDocument();

// Operations
public:
	int m_Sit[2];//m_Sit[0]装星期几,m_Sit[1]装第几节
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLessonView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL m_Status;
	int m_ViewInfo;
	virtual ~CLessonView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	void GetSit(CPoint point);
	//{{AFX_MSG(CLessonView)
	afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnAddmission();
	afx_msg void OnUpdateAddmission(CCmdUI* pCmdUI);
	afx_msg void OnDelete();
	afx_msg void OnUpdateDelete(CCmdUI* pCmdUI);
	afx_msg void OnFix();
	afx_msg void OnUpdateFix(CCmdUI* pCmdUI);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnFilePrintSetup();
	//}}AFX_MSG
	afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
	DECLARE_MESSAGE_MAP()
private:
	int m_CtrlDown;
	CPoint m_Point;
	CString GetSubject(int Grade, int Class, int Week, int Stanza);
	CString GetSubject(CObject *Teacher, int Week, int Stanza);
	void UpdateTotalLesson();
	void UpdateGradeLesson();
	void UpdateClassLesson();
	void UpdateTeacherLesson();
	void UpdateMission();
	void HeadTotalLesson();
	void HeadGradeLesson();
	void HeadClassLesson();
	void HeadTeacherLesson();
	void HeadMission();
	void BuildHead(const int flag);
	void DeleteMission();
	void FixMission();
	void AddMission();
};

#ifndef _DEBUG  // debug version in LessonView.cpp
inline CLessonDoc* CLessonView::GetDocument()
   { return (CLessonDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LESSONVIEW_H__D25F2ACD_4852_11D8_A1D7_C40994B57700__INCLUDED_)

⌨️ 快捷键说明

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