OleListDropTarget.h
上传用户:oadesign
上传日期:2013-12-25
资源大小:265k
文件大小:1k
源码类别:

进程与线程

开发平台:

Visual C++

  1. // OleListDropTarget.h: interface for the COleListDropTarget class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OLELISTDROPTARGET_H__6718724F_7D99_11D3_90F9_00105AA6C48C__INCLUDED_)
  5. #define AFX_OLELISTDROPTARGET_H__6718724F_7D99_11D3_90F9_00105AA6C48C__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <afxole.h>
  10. class COleListDropTarget : public COleDropTarget  
  11. {
  12. public:
  13. void SetParent(CWnd* pParent);
  14. COleListDropTarget(CWnd* pParent = NULL);
  15. virtual ~COleListDropTarget();
  16.    DROPEFFECT OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD 
  17.                                                 dwKeyState, CPoint point );
  18.    DROPEFFECT OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD 
  19.                                                dwKeyState, CPoint point );
  20.    void OnDragLeave(CWnd* pWnd);
  21.    
  22.    BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT 
  23.                                           dropEffect, CPoint point );
  24. // Attributes
  25. protected:
  26. CWnd* m_pParent;
  27. };
  28. #endif // !defined(AFX_OLELISTDROPTARGET_H__6718724F_7D99_11D3_90F9_00105AA6C48C__INCLUDED_)