home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / interfac / idroptgt.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  47 lines

  1. /*
  2.  * IDROPTGT.H
  3.  *
  4.  * Definitions and function prototypes for a template
  5.  * DropTarget object.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #ifndef _IDROPTGT_H_
  16. #define _IDROPTGT_H_
  17.  
  18. #include <inole.h>
  19.  
  20. class CDropTarget;
  21. typedef class CDropTarget *PCDropTarget;
  22.  
  23. class CDropTarget : public IDropTarget
  24.     {
  25.     protected:
  26.         ULONG           m_cRef;      //Interface reference count.
  27.         LPVOID          m_pBack;     //Backpointer
  28.  
  29.     public:
  30.         CDropTarget(LPVOID);
  31.         ~CDropTarget(void);
  32.  
  33.         //IDropTarget interface members
  34.         STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  35.         STDMETHODIMP_(ULONG) AddRef(void);
  36.         STDMETHODIMP_(ULONG) Release(void);
  37.  
  38.         STDMETHODIMP DragEnter(LPDATAOBJECT, DWORD, POINTL
  39.             , LPDWORD);
  40.         STDMETHODIMP DragOver(DWORD, POINTL, LPDWORD);
  41.         STDMETHODIMP DragLeave(void);
  42.         STDMETHODIMP Drop(LPDATAOBJECT, DWORD, POINTL, LPDWORD);
  43.     };
  44.  
  45.  
  46. #endif //_IDROPTGT_H_
  47.