X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9549841554799c51b74008252766f4975548b77..43c5fff8a87655d9969c7b0abfe4f31d9b9f7f5f:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 688a62b884..00785219da 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -11110,6 +11110,20 @@ wxRect wxGrid::BlockToDeviceRect( const wxGridCellCoords &topLeft, return rect; } +// ---------------------------------------------------------------------------- +// drop target +// ---------------------------------------------------------------------------- + +#if wxUSE_DRAG_AND_DROP + +// this allow setting drop target directly on wxGrid +void wxGrid::SetDropTarget(wxDropTarget *dropTarget) +{ + GetGridWindow()->SetDropTarget(dropTarget); +} + +#endif // wxUSE_DRAG_AND_DROP + // ---------------------------------------------------------------------------- // grid event classes // ----------------------------------------------------------------------------