#include "wx/setup.h"
-#if wxUSE_DRAG_AND_DROP
+#if wxUSE_OLE && wxUSE_DRAG_AND_DROP
#include "wx/log.h"
#ifdef __WIN32__
#if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS
+ #if wxCHECK_W32API_VERSION( 1, 0 )
+ #include <windows.h>
+ #endif
#include <shlobj.h> // for DROPFILES structure
#endif
#else
{
HRESULT hr = ::CoLockObjectExternal(m_pIDropTarget, TRUE, FALSE);
if ( FAILED(hr) ) {
- wxLogApiError("CoLockObjectExternal", hr);
+ wxLogApiError(wxT("CoLockObjectExternal"), hr);
return FALSE;
}
if ( FAILED(hr) ) {
::CoLockObjectExternal(m_pIDropTarget, FALSE, FALSE);
- wxLogApiError("RegisterDragDrop", hr);
+ wxLogApiError(wxT("RegisterDragDrop"), hr);
return FALSE;
}
HRESULT hr = ::RevokeDragDrop((HWND) hwnd);
if ( FAILED(hr) ) {
- wxLogApiError("RevokeDragDrop", hr);
+ wxLogApiError(wxT("RevokeDragDrop"), hr);
}
::CoLockObjectExternal(m_pIDropTarget, FALSE, TRUE);