Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef XAP_WIN32DROPTARGET_H
00022 #define XAP_WIN32DROPTARGET_H
00023
00024 #include <stdlib.h>
00025 #include <windows.h>
00026 #include <commctrl.h>
00027 #ifndef __MINGW32__
00028 #include <crtdbg.h>
00029 #endif
00030 #include <sys/types.h>
00031 #include <sys/stat.h>
00032 #include <stdio.h>
00033 #include <string.h>
00034 #include <io.h>
00035 #include <fcntl.h>
00036 #include <ole2.h>
00037
00038 #include "xap_Frame.h"
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 interface ABI_EXPORT XAP_Win32DropTarget : public IDropTarget
00049 {
00050
00051 public:
00052
00053 XAP_Win32DropTarget();
00054 virtual ~XAP_Win32DropTarget() {}
00055
00056
00057 STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
00058 STDMETHODIMP_(ULONG) AddRef ();
00059 STDMETHODIMP_(ULONG) Release ();
00060
00061
00062 STDMETHODIMP DragEnter (LPDATAOBJECT pDataObj, DWORD grfKeyState,
00063 POINTL pt, LPDWORD pdwEffect);
00064 STDMETHODIMP DragOver (DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect);
00065 STDMETHODIMP DragLeave ();
00066 STDMETHODIMP Drop (LPDATAOBJECT pDataObj, DWORD grfKeyState, POINTL pt,
00067 LPDWORD pdwEffect);
00068
00069
00070 void setFrame(XAP_Frame* pFrame) {m_pFrame = pFrame;};
00071 private:
00072
00073 int m_nCount;
00074 UINT m_uCF_RTF;
00075 bool m_bSupportedFormat;
00076 XAP_Frame* m_pFrame;
00077
00078
00079 };
00080
00081
00082 #endif