home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Source / VfOleDropTarget.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-10  |  1.4 KB  |  40 lines

  1. // -------------------------------------------------------------------------
  2. // Copyright @ 1998 TCK Software, Incorporated
  3. // All Rights Reserved
  4. // -------------------------------------------------------------------------
  5.  
  6. #ifndef __VFOLEDROPTARGET_H__
  7. #define __VFOLEDROPTARGET_H__
  8.  
  9. #include <afxole.h>
  10.  
  11. class VForm;
  12.  
  13. // -------------------------------------------------------------------------
  14. // VForms Ole drag and drop - when entering VForm
  15. // -------------------------------------------------------------------------
  16. class VfOleDropTarget : public COleDropTarget
  17. {
  18. protected:
  19.     VForm*        m_pVForm;                // Pointer to associated VForm
  20.  
  21. // Construction
  22. public:
  23.     VfOleDropTarget()                    { m_pVForm = 0; }
  24.     void    SetVForm(VForm *pForm)        { m_pVForm = pForm; }
  25.     VForm*    GetVForm()                    { return m_pVForm; }
  26.  
  27.     virtual DROPEFFECT    OnDragEnter(CWnd *pWnd, COleDataObject* pDataObject, 
  28.                                 DWORD dwKeyState, CPoint point);
  29.     virtual void        OnDragLeave(CWnd *pWnd);
  30.     virtual DROPEFFECT    OnDragOver(CWnd *pWnd, COleDataObject* pDataObject, 
  31.                                 DWORD dwKeyState, CPoint point);
  32.     virtual DROPEFFECT    OnDropEx(CWnd *pWnd, COleDataObject* pDataObject, 
  33.                                 DROPEFFECT dropDefault, DROPEFFECT dropList,
  34.                                 CPoint point);
  35.     virtual BOOL        OnDrop(CWnd *pWnd, COleDataObject* pDataObject, 
  36.                                 DROPEFFECT dropEffect, CPoint point);
  37.     virtual DROPEFFECT    OnDragScroll(CWnd *pWnd, DWORD dwKeyState, CPoint point);
  38. };
  39.  
  40. #endif