#if defined(__BORLANDC__)
#pragma hdrstop
#endif
+#ifndef WX_PRECOMP
+#include "wx/window.h"
+#endif
#include "wx/setup.h"
#include "wx/msw/ole/dropsrc.h"
#include <windows.h>
+#ifdef wxUSE_NORLANDER_HEADERS
+#include <ole2.h>
+#endif
#ifndef __WIN32__
#include <ole2.h>
// Notes : you must call SetData() before if you had used def ctor
wxDragResult wxDropSource::DoDragDrop(bool bAllowMove)
{
- wxCHECK_MSG( m_pData != NULL, wxDragNone, _T("No data in wxDropSource!") );
+ wxCHECK_MSG( m_pData != NULL, wxDragNone, wxT("No data in wxDropSource!") );
DWORD dwEffect;
HRESULT hr = ::DoDragDrop(m_pData->GetInterface(),
else {
if ( FAILED(hr) ) {
wxLogApiError("DoDragDrop", hr);
- wxLogError(_T("Drag & drop operation failed."));
+ wxLogError(wxT("Drag & drop operation failed."));
}
else {
- wxLogDebug(_T("Unexpected success return code %08lx from DoDragDrop."), hr);
+ wxLogDebug(wxT("Unexpected success return code %08lx from DoDragDrop."), hr);
}
return wxDragError;