Click here to Skip to main content
15,886,067 members
Articles / Desktop Programming / MFC

Sharing folders using tree control drag & drop

Rate me:
Please Sign up or sign in to vote.
4.27/5 (5 votes)
23 Feb 2000 97.9K   4.7K   33  
A very simple manager for shared folders using tree control drag & drop
#ifndef _DropTarget_
#define _DropTarget_

#pragma warning(disable:4115)
#include <oleidl.h>

interface IDropTargetShare : public IDropTarget
{
	virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, LPVOID FAR *ppvObject);
	virtual ULONG STDMETHODCALLTYPE   AddRef();
	virtual ULONG STDMETHODCALLTYPE   Release();

	virtual HRESULT STDMETHODCALLTYPE DragEnter(IDataObject __RPC_FAR *pDataObj,DWORD grfKeyState,
		POINTL pt,DWORD __RPC_FAR *pdwEffect);
	virtual HRESULT STDMETHODCALLTYPE DragOver(DWORD grfKeyState,POINTL pt,DWORD __RPC_FAR *pdwEffect);
	virtual HRESULT STDMETHODCALLTYPE DragLeave(void);
	virtual HRESULT STDMETHODCALLTYPE Drop(IDataObject __RPC_FAR *pDataObj, DWORD grfKeyState,
		POINTL pt, DWORD __RPC_FAR *pdwEffect);
};

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions