1 //*******************************************************************************
4 // You may use this source code, compile or redistribute it as part of your application
5 // for free. You cannot redistribute it as a part of a software development
6 // library without the agreement of the author. If the sources are
7 // distributed along with the application, you should leave the original
8 // copyright notes in the source code without any changes.
9 // This code can be used WITHOUT ANY WARRANTIES at your own risk.
11 // For the latest updates to this code, check this site:
12 // http://www.masmex.com
15 // Copyright(C) 2000 Philip Oldaker <email: philip@masmex.com>
16 //*******************************************************************************
18 #if !defined(AFX_IM_OLEIMAGEDROPTARGET_H__BC21D3A1_332C_11D1_ADE9_0000E81B9EF1__INCLUDED_)
19 #define AFX_IM_OLEIMAGEDROPTARGET_H__BC21D3A1_332C_11D1_ADE9_0000E81B9EF1__INCLUDED_
23 #endif // _MSC_VER >= 1000
24 // IM_OleImageDropTarget.h : header file
27 /////////////////////////////////////////////////////////////////////////////
28 /////////////////////////////////////////////////////////////////////////////
31 /////////////////////////////////////////////////////////////////////////////
32 // CUI_ImageDropTarget window
33 #include "UIDragDropCtrl.h"
37 class CUI_ImageDropTarget : public COleDropTarget
41 CUI_ImageDropTarget();
45 inline UINT GetClipboardFormat() const;
46 inline BOOL ImageSetup() const;
52 virtual DROPEFFECT OnDragEnter( CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );
53 virtual DROPEFFECT OnDragOver( CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );
54 virtual BOOL OnDrop( CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point );
55 virtual void OnDragLeave( CWnd* pWnd);
58 virtual ~CUI_ImageDropTarget();
60 void SetImageWin(CWnd *pWnd);
63 const CDragDropImage *GetDropImage();
64 CWnd *GetImageWin(CWnd *pWnd);
72 CDragDropImage *m_pImage;
77 inline UINT CUI_ImageDropTarget::GetClipboardFormat() const
82 inline const CDragDropImage *CUI_ImageDropTarget::GetDropImage()
87 inline void CUI_ImageDropTarget::SetImageWin(CWnd *pWnd)
92 inline CWnd *CUI_ImageDropTarget::GetImageWin(CWnd *pWnd)
94 // use main frame window as default
101 /////////////////////////////////////////////////////////////////////////////
103 //{{AFX_INSERT_LOCATION}}
104 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
106 #endif // !defined(AFX_IM_OLEIMAGEDROPTARGET_H__BC21D3A1_332C_11D1_ADE9_0000E81B9EF1__INCLUDED_)