summaryrefslogtreecommitdiffstats
path: root/src/windows/leash/CLeashDragListBox.h
blob: 02179b2741f939cf48b02bfef42321496ef30373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _LEASH_DRAGLISTBOX
#define _LEASH_DRAGLISTBOX

/////////////////////////////////////////////////////////////////////////////
// CLeashDragListBox

//#include "AFXCMN.h"

class CLeashDragListBox : public CDragListBox
{
	//DECLARE_DYNAMIC(CDragListBoxCLeashDragListBox)

	CListBox* m_pOtherListBox;
	CPropertyPage* m_pPage;

// Constructors
public:
	CLeashDragListBox();
	void initOtherListbox(CPropertyPage* pPage, CListBox* pOtherListBox);

// Attributes
	//int ItemFromPt(CPoint pt, BOOL bAutoScroll = TRUE) const;

// Operations
	virtual void DrawInsert(int nItem);

// Overridables
	virtual BOOL BeginDrag(CPoint pt);
	virtual void CancelDrag(CPoint pt);
	virtual UINT Dragging(CPoint pt);
	virtual void Dropped(int nSrcIndex, CPoint pt);

// Implementation
public:
	int m_nLast;
	void DrawSingle(int nIndex);
	virtual void PreSubclassWindow();
	virtual ~CLeashDragListBox();
protected:
	//virtual BOOL OnChildNotify(UINT, WPARAM, LPARAM, LRESULT*);
};

//class CLeashDragListBox;

#endif // _LEASH_DRAGLISTBOX