summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src/filedrop.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-18 07:52:13 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-18 07:52:13 +0000
commit70d04c9b21955c34070ee466693403e2b00870e1 (patch)
treea891633004c655fbc3448803cffa0d62855409d0 /plugins/FloatingContacts/src/filedrop.h
parent2b556a0908dfa1c12400ec9ac22a00b39bc17136 (diff)
FirstRun, FlashAvatars, FloatingContacts: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1008 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FloatingContacts/src/filedrop.h')
-rw-r--r--plugins/FloatingContacts/src/filedrop.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/FloatingContacts/src/filedrop.h b/plugins/FloatingContacts/src/filedrop.h
new file mode 100644
index 0000000000..b5c7f803aa
--- /dev/null
+++ b/plugins/FloatingContacts/src/filedrop.h
@@ -0,0 +1,26 @@
+/* This file is a modification of clcfiledrop.h originally
+ written by Richard Hughes*/
+
+static HWND hwndCurDrag = NULL;
+
+class CDropTarget: public IDropTarget
+{
+private:
+ unsigned long refCount;
+
+public:
+ CDropTarget(): refCount(0) {}
+
+ HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid,LPVOID *ppvObj);
+ ULONG STDMETHODCALLTYPE AddRef();
+ ULONG STDMETHODCALLTYPE Release();
+ HRESULT STDMETHODCALLTYPE DragOver(DWORD fKeyState, POINTL pt, DWORD *pdwEffect);
+ HRESULT STDMETHODCALLTYPE DragEnter(IDataObject *pData, DWORD fKeyState, POINTL pt, DWORD *pdwEffect);
+ HRESULT STDMETHODCALLTYPE DragLeave();
+ HRESULT STDMETHODCALLTYPE Drop(IDataObject *pData,DWORD fKeyState,POINTL pt,DWORD *pdwEffect);
+};
+
+void InitFileDropping();
+void FreeFileDropping(void);
+void RegisterFileDropping( HWND hwnd, CDropTarget* pdropTarget );
+void UnregisterFileDropping( HWND hwnd );