- void Register(WXHWND hwnd);
- void Revoke(WXHWND hwnd);
-
- virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
- virtual bool OnDrop(wxCoord x, wxCoord y);
- virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult vResult);
- virtual bool GetData();
+ //
+ // These functions are called when data is moved over position (x, y) and
+ // may return either wxDragCopy, wxDragMove or wxDragNone depending on
+ // what would happen if the data were dropped here.
+ //
+ // The last parameter is what would happen by default and is determined by
+ // the platform-specific logic (for example, under Windows it's wxDragCopy
+ // if Ctrl key is pressed and wxDragMove otherwise) except that it will
+ // always be wxDragNone if the carried data is in an unsupported format.
+ //
+ // OnData must be implemented and other should be overridden by derived classes
+ //
+ virtual wxDragResult OnData( wxCoord vX
+ ,wxCoord vY
+ ,wxDragResult eResult
+ );
+ virtual bool OnDrop( wxCoord vX
+ ,wxCoord vY
+ );
+ bool IsAcceptedData(PDRAGINFO pDataSource) const;