00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #if !defined(AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_)
00026 #define AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_
00027
00028 #if _MSC_VER >= 1000
00029 #pragma once
00030 #endif // _MSC_VER >= 1000
00031
00032
00033 #include <afxole.h>
00034
00035 class CGridCtrl;
00036
00038
00039
00040 class CGridDropTarget : public COleDropTarget
00041 {
00042 public:
00043 CGridDropTarget();
00044 virtual ~CGridDropTarget();
00045
00046
00047 public:
00048 CGridCtrl* m_pGridCtrl;
00049 BOOL m_bRegistered;
00050
00051
00052 public:
00053 BOOL Register(CGridCtrl *pGridCtrl);
00054 virtual void Revoke();
00055
00056 BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
00057 DROPEFFECT OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
00058 void OnDragLeave(CWnd* pWnd);
00059 DROPEFFECT OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
00060 DROPEFFECT OnDragScroll(CWnd* pWnd, DWORD dwKeyState, CPoint point);
00061
00062
00063
00064
00065
00066
00067
00068 protected:
00069
00070
00071
00072
00073
00074 DECLARE_MESSAGE_MAP()
00075 };
00076
00078
00079
00080
00081
00082 #endif // !defined(AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_)