X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cb88a72da82ab3488b6643f34755daf7c930043..a76342da418c75ead546ce2025db24dad261d237:/src/msw/ole/droptgt.cpp diff --git a/src/msw/ole/droptgt.cpp b/src/msw/ole/droptgt.cpp index 37818b5760..23ff76e111 100644 --- a/src/msw/ole/droptgt.cpp +++ b/src/msw/ole/droptgt.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "droptgt.h" #endif @@ -43,7 +43,7 @@ #ifdef __WIN32__ #if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS #if wxCHECK_W32API_VERSION( 1, 0 ) - #include + #include "wx/msw/wrapwin.h" #endif #include // for DROPFILES structure #endif @@ -330,6 +330,13 @@ wxDropTarget::~wxDropTarget() bool wxDropTarget::Register(WXHWND hwnd) { + // FIXME + // RegisterDragDrop not available on Windows CE >= 400? + // Or maybe we can dynamically load them from ceshell.dll + // or similar. +#if defined(__WXWINCE__) && _WIN32_WCE >= 400 + return FALSE; +#else HRESULT hr; // May exist in later WinCE versions @@ -355,10 +362,14 @@ bool wxDropTarget::Register(WXHWND hwnd) m_pIDropTarget->SetHwnd((HWND)hwnd); return TRUE; +#endif } void wxDropTarget::Revoke(WXHWND hwnd) { +#if defined(__WXWINCE__) && _WIN32_WCE >= 400 + // Not available, see note above +#else HRESULT hr = ::RevokeDragDrop((HWND) hwnd); if ( FAILED(hr) ) { @@ -371,6 +382,7 @@ void wxDropTarget::Revoke(WXHWND hwnd) #endif m_pIDropTarget->SetHwnd(0); +#endif } // ----------------------------------------------------------------------------