home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / oleview / view.h < prev   
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.4 KB  |  55 lines

  1. // view.h
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. #ifndef _VIEW_H_
  15. #define _VIEW_H_
  16.  
  17. class CDropTargetView : public CView
  18. {
  19. public:
  20.     CDropTargetView();
  21.     DECLARE_DYNAMIC(CDropTargetView)
  22.  
  23. // Attributes
  24. public:
  25.     COle2ViewDoc* GetDocument();
  26.     CListBox      m_lb ;
  27.  
  28. #if _MFC_VER > 0x0210
  29.     COleDropTarget  m_dropTarget ;
  30.  
  31. // Overridables
  32. public:
  33.     virtual DROPEFFECT OnDragEnter(COleDataObject* pDataObject,
  34.         DWORD dwKeyState, CPoint point);
  35.     virtual DROPEFFECT OnDragOver(COleDataObject* pDataObject,
  36.         DWORD dwKeyState, CPoint point);
  37.     virtual void OnDragLeave();
  38.     virtual BOOL OnDrop(COleDataObject* pDataObject,
  39.         DROPEFFECT dropEffect, CPoint point);
  40. #endif
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CDropTargetView)
  44.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45.     //}}AFX_MSG
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. #ifndef _DEBUG  // debug version in vw.cpp
  50. inline COle2ViewDoc* CDropTargetView::GetDocument()
  51.    { return (COle2ViewDoc*) m_pDocument; }
  52. #endif
  53.  
  54. #endif // _VIEW_H_
  55.