summaryrefslogtreecommitdiff
path: root/dtrans/test/win32/dnd/dndTest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dtrans/test/win32/dnd/dndTest.cxx')
-rw-r--r--dtrans/test/win32/dnd/dndTest.cxx17
1 files changed, 4 insertions, 13 deletions
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx
index 34080fb46efe..511a66cdf8a5 100644
--- a/dtrans/test/win32/dnd/dndTest.cxx
+++ b/dtrans/test/win32/dnd/dndTest.cxx
@@ -62,22 +62,16 @@ using namespace com::sun::star::datatransfer;
using namespace com::sun::star::uno;
using namespace com::sun::star::datatransfer::dnd;
using namespace com::sun::star::datatransfer::dnd::DNDConstants;
-using namespace rtl;
-// defined in atlwindow.hxx
-// #define WM_SOURCE_INIT WM_APP+100
-// #define WM_SOURCE_STARTDRAG WM_APP+101
+using ::rtl::OUString;
+
#define WM_CREATE_MTA_WND
HRESULT doTest();
DWORD WINAPI MTAFunc( void* threadData);
Reference< XMultiServiceFactory > MultiServiceFactory;
-//int APIENTRY WinMain(HINSTANCE hInstance,
-// HINSTANCE hPrevInstance,
-// LPSTR lpCmdLine,
-// int nCmdShow)
-//int _tmain( int argc, TCHAR *argv[ ], TCHAR *envp[ ] )
+
int main( int argc, char *argv[ ], char *envp[ ] )
{
HRESULT hr;
@@ -93,8 +87,6 @@ int main( int argc, char *argv[ ], char *envp[ ] )
if( FAILED(hr=doTest()))
{
_com_error err( hr);
- const TCHAR * errMsg= err.ErrorMessage();
-// MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
}
@@ -160,8 +152,7 @@ DWORD WINAPI MTAFunc( void* threadData)
RECT pos={0, 406, 300, 605};
AWindow win(_T("DnD, full MTA"), GetCurrentThreadId(), pos, false, true);
-// ThreadData data= *( ThreadData*)pParams;
-// SetEvent(data.evtThreadReady);
+
while( GetMessage(&msg, (HWND)NULL, 0, 0) )
{
switch( msg.message)