12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #if !defined(AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_)
- #define AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- #include <afxole.h>
- class CGridCtrl;
- class CGridDropTarget : public COleDropTarget
- {
- public:
- CGridDropTarget();
- virtual ~CGridDropTarget();
- public:
- CGridCtrl* m_pGridCtrl;
- BOOL m_bRegistered;
- public:
- BOOL Register(CGridCtrl *pGridCtrl);
- virtual void Revoke();
- BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
- DROPEFFECT OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
- void OnDragLeave(CWnd* pWnd);
- DROPEFFECT OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
- DROPEFFECT OnDragScroll(CWnd* pWnd, DWORD dwKeyState, CPoint point);
-
-
-
- protected:
-
-
-
- DECLARE_MESSAGE_MAP()
- };
- #endif
|