GME  13
GMEViewDropTarget.h
Go to the documentation of this file.
00001 // GMEViewDropTarget.h: interface for the CGMEViewDropTarget class.
00002 //
00004 
00005 #if !defined(AFX_GMEACTIVEBROWSERDROPTARGET_H__ACA6C0DC_0719_4C87_AD25_7B3CD4D15B66__INCLUDED_)
00006 #define AFX_GMEACTIVEBROWSERDROPTARGET_H__ACA6C0DC_0719_4C87_AD25_7B3CD4D15B66__INCLUDED_
00007 
00008 #include "GMEView.h"    // Added by ClassView
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif // _MSC_VER > 1000
00012 
00013 #define GMEVIEWDROPTARGET_LOGEVENT(eventstring) \
00014 { \
00015         if(m_EventLogger != NULL) \
00016         { \
00017                 CComBSTR eventBSTR = eventstring; \
00018                 m_EventLogger->LogEvent(eventBSTR); \
00019         } \
00020 } \
00021 
00022 class CGMEViewDlg;
00023 
00024 class CGMEViewDropTarget : public COleDropTarget  
00025 {
00026 public:
00027         BOOL OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
00028 
00029         eDragOperation                          m_doDragOperation;
00030         CPoint                                          m_ptHotSpot;
00031         BOOL                                            m_bCreatedDragImageList;
00032         CImageList* ExtractGMEDataObject(COleDataObject* pDataObject);
00033         CImageList*                                     m_pDragImageList;
00034 
00035         void            OnDragLeave( CWnd* pWnd );
00036         DROPEFFECT      OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
00037         DROPEFFECT      OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
00038 
00039         CGMEViewDropTarget(CGMEViewDlg* pParent);
00040         virtual ~CGMEViewDropTarget();
00041 
00042         CGMEViewDlg*                            m_pParent;
00043         CComPtr<IMgaEventLogger>        m_EventLogger;
00044 };
00045 
00046 #endif // !defined(AFX_GMEACTIVEBROWSERDROPTARGET_H__ACA6C0DC_0719_4C87_AD25_7B3CD4D15B66__INCLUDED_)