📄 tlistview.h
字号:
/*****************************************************************************/
/* TListView.h Copyright (c) Ladislav Zezula 2003 */
/*---------------------------------------------------------------------------*/
/* List view of the MPQ Editor */
/*---------------------------------------------------------------------------*/
/* Date Ver Who Comment */
/* -------- ---- --- ------- */
/* 03.04.03 1.00 Lad The first version of TListView.h */
/*****************************************************************************/
#ifndef __TLISTVIEW_H__
#define __TLISTVIEW_H__
//-----------------------------------------------------------------------------
// TListView class
class TTreeView;
class TListView : public CListView
{
public:
TListView();
virtual ~TListView();
DECLARE_DYNCREATE(TListView);
void SetLinkPointers(TMainFrame * pMainFrame, TTreeView * pTreeView);
void LoadListView(HTREEITEM hItem);
TFileInfo * GetItemData(UINT nItem, HTREEITEM * phItem, char * szText = NULL, int nMaxChars = 0);
HWND GetHwnd() { return m_hListView; }
protected:
static int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParam);
int CompareItems(LPARAM lParam1, LPARAM lParam2);
COleDropTarget m_DropTarget; // For implementing Drag & Drop
TMainFrame * m_pMainFrame; // Pointer to the main frame
TTreeView * m_pTreeView; // Pointer to tree view
HIMAGELIST m_hImlSmall; // Handle to system image list
HIMAGELIST m_hImlNormal; // Handle to system image list
HTREEITEM m_hCurrent; // Currently selected tree item
HWND m_hListView; // Window handle for MT access
int m_uSortColumn; // Last sorting column
BOOL m_bAscending; // TRUE is ascending sort
//{{AFX_VIRTUAL(TListView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(TListView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDblClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnBeginLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndLabelEdit(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnDropFiles(HDROP hDropInfo);
afx_msg void OnColumnClick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // __TLISTVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -