#endif
// For compilers that support precompilation, includes "wx.h".
-#define IN_WX_MAIN_CPP
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
{
m_cRef = 0;
m_pTarget = pTarget;
- m_cfFormat = 0;
+ m_cfFormat = (wxDataFormat) 0;
m_pIDataObject = NULL;
}
// means) for file drag and drop
if ( pIDataSource->QueryGetData(&s_fmtMemory) == S_OK ) {
// remember this format: we'll later ask for data in it
- m_pIDropTarget->SetSupportedFormat(s_fmtMemory.cfFormat);
+ m_pIDropTarget->SetSupportedFormat((wxDataFormat) s_fmtMemory.cfFormat);
return TRUE;
}
}
wxDataFormat wxTextDropTarget::GetFormat(size_t WXUNUSED(n)) const
{
- return CF_TEXT;
+ return wxDF_TEXT;
}
// ============================================================================
wxDataFormat wxFileDropTarget::GetFormat(size_t WXUNUSED(n)) const
{
#ifdef __WIN32__
- return CF_HDROP;
+ return wxDF_FILENAME;
#else
// TODO: how to implement this in WIN16?
- return CF_TEXT;
+ return wxDF_TEXT;
#endif
}