#pragma implementation "dnd.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#if wxUSE_DRAG_AND_DROP
+
#include "wx/window.h"
#include "wx/app.h"
#include "wx/gdicmn.h"
#define INCL_DOS
#include <os2.h>
-#if wxUSE_DRAG_AND_DROP
-
// ----------------------------------------------------------------------------
// global
// ----------------------------------------------------------------------------
// Release the held object
//
Free();
- return TRUE;
+ return true;
} // end of CIDropTarget::DragLeave
MRESULT CIDropTarget::DragOver ()
,m_pDragInfo->yDrop
))
{
- wxDragResult eRc = wxDragNone;;
+ wxDragResult eRc = wxDragNone;
//
// And now it has the data
,eRc
);
}
- //else: OnDrop() returned FALSE, no need to copy data
+ //else: OnDrop() returned false, no need to copy data
//
// Release the held object
if (vFormat == wxDF_INVALID)
{
- return FALSE;
+ return false;
}
//
// Under OS/2 we already have the data via the attached DRAGITEM's
//
- return TRUE;
+ return true;
} // end of wxDropTarget::GetData
wxDataFormat wxDropTarget::GetSupportedFormat (
ULONG n;
wxString sMechanism;
wxString sFormat;
- bool bValid = FALSE;
+ bool bValid = false;
pFormats = ulFormats == 1 ? &vFormat : new wxDataFormat[ulFormats];
m_dataObject->GetAllFormats( pFormats
pDragItem = ::DrgQueryDragitemPtr(pDataSource, i);
if (::DrgVerifyRMF(pDragItem, (PSZ)sMechanism.c_str(), (PSZ)sFormat.c_str()))
{
- bValid = TRUE;
+ bValid = true;
break;
}
}
, wxCoord WXUNUSED(y)
)
{
- return TRUE;
+ return true;
} // end of wxDropTarget::OnDrop
//-------------------------------------------------------------------------
case wxDragError:
break;
}
- return TRUE;
+ return true;
}
else
{
- return FALSE;
+ return false;
}
} // end of GuiAdvDnd_CDropSource::GiveFeedback