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