X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ed0d735d588f42485461ea526596436c4c6ad4b..a76342da418c75ead546ce2025db24dad261d237:/src/msw/ole/droptgt.cpp diff --git a/src/msw/ole/droptgt.cpp b/src/msw/ole/droptgt.cpp index 759dc6ba81..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 @@ -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 } // ----------------------------------------------------------------------------