X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1be7a35c5ec31b6cfcab9d969c7969586441a945..40e5ebbf98728d627e4d3c9e3a57f28f5bb8fcb9:/include/wx/dnd.h diff --git a/include/wx/dnd.h b/include/wx/dnd.h index ccc82d422a..498bbc7afe 100644 --- a/include/wx/dnd.h +++ b/include/wx/dnd.h @@ -45,10 +45,9 @@ enum wxDragResult wxDragCancel // the operation was cancelled by user (not an error) }; -inline WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res) -{ - return res == wxDragCopy || res == wxDragMove || res == wxDragLink; -} +// return true if res indicates that something was done during a dnd operation, +// i.e. is neither error nor none nor cancel +WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res); // ---------------------------------------------------------------------------- // wxDropSource is the object you need to create (and call DoDragDrop on it)