draglist.h

来自「类似 windows explorer的工具」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef _DRAGDROPLIST_H_
#define _DRAGDROPLIST_H_

//class CDragList : public CListCtrl
#include "ShellListCtrl.h"

// 要改变 CDragList 的基类,只需要改变 CDragList_BaseClass 定义
#define CDragList_BaseClass CShellListCtrl
class CDragList : public CDragList_BaseClass // CDragList_BaseClass is a macro
{
public:
	CDragList();
	virtual ~CDragList();

public:
	//拖放图像列表
	CImageList  *m_pImgDragList;
	CImageList  *CreateDragImage(LPPOINT lpPoint);


// Overrides
	//{{AFX_VIRTUAL(CDragList)
	//}}AFX_VIRTUAL

protected:
	//{{AFX_MSG(CDragList)
	afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
    afx_msg void OnDeleteItem(NMHDR* pNMHDR, LRESULT* pResult);
	
	DECLARE_MESSAGE_MAP()
private:
//	COLORREF m_crBackColor;
};
#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?