summaryrefslogtreecommitdiff
path: root/dtrans/test/win32/dnd/atlwindow.hxx
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2001-07-19 10:14:24 +0000
committerJoachim Lingner <jl@openoffice.org>2001-07-19 10:14:24 +0000
commit18eb3b3fa3edb87ca47ac4800f92a24fa2a587fa (patch)
tree331675c7249c7f5ec7515ff845ee6c0813c38c9d /dtrans/test/win32/dnd/atlwindow.hxx
parentc29c2e1270d2ee01a5769a809ad9afde4cd7b5cf (diff)
*** empty log message ***
Diffstat (limited to 'dtrans/test/win32/dnd/atlwindow.hxx')
-rw-r--r--dtrans/test/win32/dnd/atlwindow.hxx31
1 files changed, 22 insertions, 9 deletions
diff --git a/dtrans/test/win32/dnd/atlwindow.hxx b/dtrans/test/win32/dnd/atlwindow.hxx
index bfebf18e5add..2d664510b236 100644
--- a/dtrans/test/win32/dnd/atlwindow.hxx
+++ b/dtrans/test/win32/dnd/atlwindow.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: atlwindow.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jl $ $Date: 2001-03-30 15:37:32 $
+ * last change: $Author: jl $ $Date: 2001-07-19 11:14:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -64,6 +64,7 @@
extern CComModule _Module;
#include<atlcom.h>
#include<atlctl.h>
+#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/datatransfer/dnd/XDropTarget.hpp>
#include <com/sun/star/datatransfer/dnd/XDragSource.hpp>
#include <com/sun/star/datatransfer/XTransferable.hpp>
@@ -74,12 +75,21 @@ extern CComModule _Module;
using namespace com::sun::star::uno;
using namespace com::sun::star::datatransfer::dnd;
using namespace com::sun::star::datatransfer;
+using namespace com::sun::star::lang;
+#define WM_SOURCE_INIT WM_APP+100
+#define WM_SOURCE_STARTDRAG WM_APP+101
-struct ThreadData
+
+struct StartDragData
{
Reference<XDragSource> source;
Reference<XTransferable> transferable;
- HANDLE evtThreadReady;
+};
+
+struct InitializationData
+{
+ Reference<XInitialization> xInit;
+ HWND hWnd;
};
class AWindow: public CWindowImpl<AWindow, CWindow,
@@ -89,18 +99,21 @@ class AWindow: public CWindowImpl<AWindow, CWindow,
Reference<XDropTarget> m_xDropTarget;
Reference<XDragSource> m_xDragSource;
BOOL m_isMTA;
-
+ BOOL m_bInitInMTA;
HWND m_hwndEdit;
-
+ // Id of the MTA thread to which we post messages.
+ DWORD m_idMTAThread;
CDTransObjFactory m_aDataConverter;
public:
- AWindow(LPCTSTR strName)
+ AWindow(LPCTSTR strName, DWORD idMTAThread): m_idMTAThread( idMTAThread)
{
RECT rcPos= {0,0,200,200};
Create(0, rcPos, strName);
}
- AWindow(LPCTSTR strName, RECT pos, BOOL mta=FALSE): m_isMTA( mta)
+ AWindow(LPCTSTR strName, DWORD idMTAThread, RECT pos, BOOL mta=FALSE,
+ BOOL initInMTA=FALSE):
+ m_isMTA( mta), m_idMTAThread( idMTAThread), m_bInitInMTA( initInMTA)
{
Create(0, pos, strName);
}
@@ -131,4 +144,4 @@ public:
};
-#endif \ No newline at end of file
+#endif