28 lines
725 B
C++
28 lines
725 B
C++
#ifndef _DRAG_LIST_H_
|
|
#define _DRAG_LIST_H_
|
|
|
|
#include "Resource.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
#define SELECT_NONE -1
|
|
#define BUTTON_UP -1
|
|
//#define WM_SWAPITEM WM_USER+435
|
|
#define WM_MOVEITEM WM_USER+436
|
|
class CDragList
|
|
{
|
|
private:
|
|
static vector <RECT> ItemRect;
|
|
static int m_ActiveItem;
|
|
static bool m_IsOut;
|
|
static bool m_IsInFilstPart;
|
|
static bool m_IsInSecondPart;
|
|
static POINT MouseDownPoint;
|
|
public:
|
|
static int m_SelectItem;
|
|
public:
|
|
static void BeginDrag(HWND ListWnd, POINT point);
|
|
static void EndDrag(HWND ListWnd, POINT point);
|
|
static void Dragging(HWND ListWnd, POINT point);
|
|
//static void DrawLine(HWND hWnd, int BeginX, int BeginY, int EndX, int EndY);
|
|
};
|
|
#endif // #define _DRAG_LIST_H_
|