Click here to Skip to main content
15,896,557 members
Articles / Desktop Programming / MFC

FiveLoaves v1.0

Rate me:
Please Sign up or sign in to vote.
3.84/5 (10 votes)
2 Jul 20028 min read 84.8K   4.4K   49  
FiveLoaves is an Internet utility designed to meet the most common needs of internet users - primarily secure connectivity
#ifndef PROCESS_DRAG_DROP_H__
#define PROCESS_DRAG_DROP_H__

#include "GStringList.h"		// from the UBT Library
#include "FileXferInterface.h"	// from the UBT Library
#include "FileXfer.h"

DWORD WINAPI DragThread(LPVOID lpParameter);


class DropData
{
	GString			strSerializeStorage;
public:
	GStringList		lstRemoteFiles; 
	GStringList		lstLocalFiles; 
	GStringList		lstCopyFiles; 
	GString			strServer;
	GString			strPass;
	int DeSerialize(const char *pSrc);
	const char *Serialize(const char *pzFile = 0);
};



class DropNotifications : public COleDropSource
{
	DropData *m_pDD;
	CWnd* pWndSender;
public:
	void SetAndInflateRect(int a,int b,int c,int d);
	void SetDragStarted(BOOL b){m_bDragStarted = b;}
	UINT GetDragMinDest(){return COleDropSource::nDragMinDist;}
	DropNotifications( DropData *pDD )
	{
		pWndSender = 0;
		m_pDD = pDD;
	}
	virtual SCODE GiveFeedback( DROPEFFECT dropEffect )
	{
		SCODE nRet = COleDropSource::GiveFeedback(dropEffect);
		return nRet;
	}
	virtual BOOL OnBeginDrag( CWnd* pWnd )
	{
		BOOL bRet = COleDropSource::OnBeginDrag(pWnd);
		return bRet;
	}
	
	// this is on the stack of the DragThread
	virtual SCODE QueryContinueDrag( BOOL bEscapePressed, DWORD dwKeyState );
	
	friend class CMyOleDataSource; // MSFT's fault.
};



class CMyOleDataSource : public COleDataSource
{
public:
	CMyOleDataSource(){};
	DROPEFFECT DoDragDrop(DropData *pDD);
};



#endif //PROCESS_DRAG_DROP_H__

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
Founder United Business Technologies
United States United States
http://about.me/brian.aberle
https://www.linkedin.com/in/brianaberle
http://SyrianRue.org/Brian

Comments and Discussions