#include "wx/log.h"
#ifdef __WIN32__
- #ifndef __GNUWIN32__
+ #if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS
#include <shlobj.h> // for DROPFILES structure
#endif
#else
{
public:
wxIDropTarget(wxDropTarget *p);
+ // suppress gcc warning
+#ifdef __GNUG__
+ virtual
+#endif
~wxIDropTarget();
// accessors for wxDropTarget
// we need client coordinates to pass to wxWin functions
if ( !ScreenToClient(m_hwnd, (POINT *)&pt) )
{
- wxLogLastError("ScreenToClient");
+ wxLogLastError(wxT("ScreenToClient"));
}
// give some visual feedback
// we need client coordinates to pass to wxWin functions
if ( !ScreenToClient(m_hwnd, (POINT *)&pt) )
{
- wxLogLastError("ScreenToClient");
+ wxLogLastError(wxT("ScreenToClient"));
}
*pdwEffect = ConvertDragResultToEffect(
// we need client coordinates to pass to wxWin functions
if ( !ScreenToClient(m_hwnd, (POINT *)&pt) )
{
- wxLogLastError("ScreenToClient");
+ wxLogLastError(wxT("ScreenToClient"));
}
// first ask the drop target if it wants data
// and now it has the data
wxDragResult rc = ConvertDragEffectToResult(GetDropEffect(grfKeyState));
- m_pTarget->OnData(pt.x, pt.y, rc);
+ rc = m_pTarget->OnData(pt.x, pt.y, rc);
if ( wxIsDragResultOk(rc) ) {
// operation succeeded
*pdwEffect = ConvertDragResultToEffect(rc);
rc = TRUE;
}
else {
- wxLogLastError("IDataObject::SetData()");
+ wxLogLastError(wxT("IDataObject::SetData()"));
}
}
else {
- wxLogLastError("IDataObject::GetData()");
+ wxLogLastError(wxT("IDataObject::GetData()"));
}
return rc;