📄 view.h
字号:
// $$root$$View.h : interface of the C$$Safe_root$$View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_)
#define AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class C$$Safe_root$$Doc;
class C$$Safe_root$$View : public CListView
{
protected: // create from serialization only
C$$Safe_root$$View();
DECLARE_DYNCREATE(C$$Safe_root$$View)
// Attributes
public:
C$$Safe_root$$Doc* GetDocument();
CString m_strCurDirectory;
CListCtrl* m_pListCtrl;
protected:
CFont m_Font;
CImageList m_LargeIcons;
CImageList m_SmallIcons;
// Operations
public:
void BuildColumns(int nCols, int * nWidth, CString * csCol);
void FormatList(CString csPath);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(C$$Safe_root$$View)
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);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~C$$Safe_root$$View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
afx_msg void OnContextMenu(CWnd*, CPoint point);
//{{AFX_MSG(C$$Safe_root$$View)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnBlank();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in $$root$$View.cpp
inline C$$Safe_root$$Doc* C$$Safe_root$$View::GetDocument()
{ return (C$$Safe_root$$Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -