📄 mtlistview.h
字号:
// MTListView.h : interface of the CMTListView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MTLISTVIEW_H__B813D1D7_AA0F_4198_AF0D_DDEFB56CA26F__INCLUDED_)
#define AFX_MTLISTVIEW_H__B813D1D7_AA0F_4198_AF0D_DDEFB56CA26F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "MTricksterDoc.h"
#include "MyList.h"
class CMTListView : public CListView
{
protected: // create from serialization only
CMTListView();
DECLARE_DYNCREATE(CMTListView)
// Attributes
public:
CMTricksterDoc* GetDocument();
CMyList *m_List;
int iSelected;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMTListView)
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
//}}AFX_VIRTUAL
// Implementation
public:
HANDLE hDevice;
CString path;
void SetPath(CString str,HANDLE handle);
ULONG index;
void AddToListView(PDIRECTORY_INFO_EX fd);
void DeleteAllItems();
LPTSTR GetNTS(CString cString);
virtual ~CMTListView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CImageList *m_pImage;
// Generated message map functions
protected:
//{{AFX_MSG(CMTListView)
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMenuitemDelete();
afx_msg void OnMenuitemForceKill();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in MTListView.cpp
inline CMTricksterDoc* CMTListView::GetDocument()
{ return (CMTricksterDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MTLISTVIEW_H__B813D1D7_AA0F_4198_AF0D_DDEFB56CA26F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -