📄 selectview.h
字号:
#if !defined(AFX_SELECTVIEW_H__F4FE4D66_0967_4363_BE62_1A4E2CB184FD__INCLUDED_)
#define AFX_SELECTVIEW_H__F4FE4D66_0967_4363_BE62_1A4E2CB184FD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelectView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSelectView view
#include "PJNSMTP.h"
class CMainFrame;
class CSelectView : public CTreeView
{
protected:
CSelectView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CSelectView)
// Attributes
public:
// Operations
public:
void DrawTreeItem();
void InsertClass(HTREEITEM hParentItem, int iImage, int iSelectedImage);
void InsertTeacher(HTREEITEM hParentItem, int iImage, int iSelectedImage);
void InsertSheet(HTREEITEM hParentItem, int iImage, int iSelectedImage);
void InsertSubItem(HTREEITEM hParentItem, const char* szItems[], int iImage, int iSelectedImage);
void SelectView(HTREEITEM hItem);
BOOL ExportTheme(CString& sFile) ;
BOOL ExportSheet(CString& sFile) ;
BOOL ExportScore(CString& sFile) ;
BOOL DoExportTheme(const CString& sFile) ;
BOOL DoExportSheet(const CString& sFile) ;
BOOL DoExportScore(const CString& sFile) ;
void Mail(const CString& sFile, const CString& sTeacher, CString sSubject);
CString GetItemText(int index) const {
return m_strItemText[index];
}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSelectView)
public:
virtual void OnInitialUpdate();
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CSelectView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CSelectView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnExportTheme();
afx_msg void OnUpdateExportTheme(CCmdUI* pCmdUI);
afx_msg void OnImportTheme();
afx_msg void OnUpdateImportTheme(CCmdUI* pCmdUI);
afx_msg void OnExportMailTheme();
afx_msg void OnUpdateExportMailTheme(CCmdUI* pCmdUI);
afx_msg void OnTeacherInfo();
afx_msg void OnUpdateTeacherInfo(CCmdUI* pCmdUI);
afx_msg void OnImportSheet();
afx_msg void OnUpdateImportSheet(CCmdUI* pCmdUI);
afx_msg void OnExportSheet();
afx_msg void OnUpdateExportSheet(CCmdUI* pCmdUI);
afx_msg void OnExportMailSheet();
afx_msg void OnUpdateExportMailSheet(CCmdUI* pCmdUI);
afx_msg void OnExportScore();
afx_msg void OnUpdateExportScore(CCmdUI* pCmdUI);
afx_msg void OnImportScore();
afx_msg void OnUpdateImportScore(CCmdUI* pCmdUI);
afx_msg void OnExportMailScore();
afx_msg void OnUpdateExportMailScore(CCmdUI* pCmdUI);
afx_msg void OnSendMsg();
afx_msg void OnUpdateSendMsg(CCmdUI* pCmdUI);
afx_msg void OnAssign();
afx_msg void OnUpdateAssign(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
CMainFrame* m_pMainFrm;
CToolTipCtrl m_ToolTip;
HTREEITEM m_hCurrItem;
CImageList m_ImgList;
CBitmap m_bmpTeam;
CBitmap m_bmpYear;
BOOL m_bCreating;
BOOL m_bSelected;
CTreeCtrl* m_pTreeCtrl;
CString m_strItemText[4];
CMail m_mail;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SELECTVIEW_H__F4FE4D66_0967_4363_BE62_1A4E2CB184FD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -