diff options
Diffstat (limited to 'dtrans/test/win32/dnd/atlwindow.hxx')
-rw-r--r-- | dtrans/test/win32/dnd/atlwindow.hxx | 31 |
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 |