📄 titleview.h
字号:
#if !defined(AFX_TITLEVIEW_H__E7728A80_E543_11D4_B45A_00104B1269BD__INCLUDED_)
#define AFX_TITLEVIEW_H__E7728A80_E543_11D4_B45A_00104B1269BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TitleView.h : header file
//
#define FM_CLOSEFOLDERLISTVIEW (WM_USER + 100)
/////////////////////////////////////////////////////////////////////////////
// CTitleView view
#include "TreeCtrlEx.h"
class CTitleView : public CView
{
protected:
CTitleView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CTitleView)
// Attributes
protected:
CCJCaption m_Caption;
CCJFlatButton m_CaptionButton;
CImageList m_ImageList;
CToolTipCtrl m_tip;
HTREEITEM m_pOldSel;
public:
// static because we need to access control even when
// the parent view is not visible.
static CTreeCtrlEx m_TitleTree[CATEGORY_NUM];
// Operations
public:
BOOL CanDeleteOption();
void DeleteOption(CDaoDatabase *m_pData, LPCTSTR lpszToday);
BOOL CanExport();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTitleView)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CTitleView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
void ShowPopupMenu(CPoint &point, int nImage);
CSize GetButtonTextSize(CFont *pFont, UINT nIDText);
//{{AFX_MSG(CTitleView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnEditDelete();
afx_msg void OnFileExport();
afx_msg void OnFilePrintPreview();
afx_msg void OnFilePrint();
//}}AFX_MSG
afx_msg void OnCaptButton();
afx_msg void OnSelchangedTree(UINT id, NMHDR* pNMHDR, LRESULT* pResult);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TITLEVIEW_H__E7728A80_E543_11D4_B45A_00104B1269BD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -