GRIDDROPTARGET.H
上传用户:asikq0571
上传日期:2014-07-12
资源大小:528k
文件大小:2k
源码类别:

Internet/IE编程

开发平台:

Visual C++

  1. #if !defined(AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_)
  2. #define AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // GridDropTarget.h : header file
  7. //
  8. // Written by Chris Maunder 
  9. //        mailto:chrismaunder@codeguru.com
  10. //
  11. // Copyright (c) 1998.
  12. #include <afxole.h>
  13. class CGridCtrl;
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CGridDropTarget command target
  16. class CGridDropTarget : public COleDropTarget
  17. {
  18. public:
  19.     CGridDropTarget();
  20.     virtual ~CGridDropTarget();
  21. // Attributes
  22. public:
  23.     CGridCtrl* m_pGridCtrl;
  24.     BOOL       m_bRegistered;
  25. // Operations
  26. public:
  27.     BOOL Register(CGridCtrl *pGridCtrl);
  28.     virtual void Revoke();
  29.     BOOL        OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
  30.     DROPEFFECT  OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
  31.     void        OnDragLeave(CWnd* pWnd);
  32.     DROPEFFECT  OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
  33.     DROPEFFECT  OnDragScroll(CWnd* pWnd, DWORD dwKeyState, CPoint point);
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CGridDropTarget)
  37.     //}}AFX_VIRTUAL
  38. // Implementation
  39. protected:
  40.     // Generated message map functions
  41.     //{{AFX_MSG(CGridDropTarget)
  42.     //}}AFX_MSG
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45. /////////////////////////////////////////////////////////////////////////////
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_GRIDDROPTARGET_H__5C610981_BD36_11D1_97CD_00A0243D1382__INCLUDED_)