1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// DropURL.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDropURL command target
class CDragPad;
class CDropURL : public CCmdTarget
{
DECLARE_DYNCREATE(CDropURL)
CDropURL(); // protected constructor used by dynamic creation
// Attributes
public:
CDragPad* m_Pad;
HRESULT Drop(IDataObject *pDataObject,DWORD grfKeyState,POINTL pt,DWORD *pwdEffect);
CString GetHostName(IDataObject *pDataObject,CString *url = NULL);
HRESULT DragEnter(IDataObject *pDataObject,DWORD grfKeyState,POINTL pt,DWORD *pdwEffect);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDropURL)
public:
virtual void OnFinalRelease();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CDropURL();
// Generated message map functions
//{{AFX_MSG(CDropURL)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
DECLARE_INTERFACE_MAP()
BEGIN_INTERFACE_PART(DDropTarget, IDropTarget)
STDMETHOD_(HRESULT, DragEnter)(IDataObject *pDataObject,DWORD grfKeyState,POINTL pt,DWORD *pdwEffect);
STDMETHOD_(HRESULT, DragOver)(DWORD grfKeyState,POINTL pt,DWORD *pdwEffect);
STDMETHOD_(HRESULT, DragLeave)(void);
STDMETHOD_(HRESULT, Drop)(IDataObject *pDataObject,DWORD grfKeyState,POINTL pt,DWORD *pdwEffect);
END_INTERFACE_PART(DDropTarget);
};
/////////////////////////////////////////////////////////////////////////////
|