X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f480da37ca0840ddbe48b908d511d2e9fc20bf4..2f7c2af5474ea532899a7311efb31a55a555f372:/src/msw/ole/dropsrc.cpp?ds=sidebyside diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index a36ac856da..86f31d8c58 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -27,6 +27,9 @@ #if defined(__BORLANDC__) #pragma hdrstop #endif +#ifndef WX_PRECOMP +#include "wx/window.h" +#endif #include "wx/setup.h" @@ -37,6 +40,9 @@ #include "wx/msw/ole/dropsrc.h" #include +#ifdef wxUSE_NORLANDER_HEADERS +#include +#endif #ifndef __WIN32__ #include @@ -183,7 +189,7 @@ wxDropSource::~wxDropSource() // Notes : you must call SetData() before if you had used def ctor wxDragResult wxDropSource::DoDragDrop(bool bAllowMove) { - wxCHECK_MSG( m_pData != NULL, wxDragNone, "No data in wxDropSource!" ); + wxCHECK_MSG( m_pData != NULL, wxDragNone, _T("No data in wxDropSource!") ); DWORD dwEffect; HRESULT hr = ::DoDragDrop(m_pData->GetInterface(), @@ -215,10 +221,10 @@ wxDragResult wxDropSource::DoDragDrop(bool bAllowMove) else { if ( FAILED(hr) ) { wxLogApiError("DoDragDrop", hr); - wxLogError("Drag & drop operation failed."); + wxLogError(_T("Drag & drop operation failed.")); } else { - wxLogDebug("Unexpected success return code %08lx from DoDragDrop.", hr); + wxLogDebug(_T("Unexpected success return code %08lx from DoDragDrop."), hr); } return wxDragError;