Implement simple drag

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-20 19:57:54 +00:00
parent ce2fe79863
commit 592883ed7e

View File

@@ -46,6 +46,7 @@
#include "wx/listimpl.cpp"
#include "wx/imaglist.h"
#include "wx/headerctrl.h"
#include "wx/dnd.h"
//-----------------------------------------------------------------------------
// classes
@@ -3023,8 +3024,12 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event )
if (!obj)
return;
wxPrintf( "success\n" );
// m_dragDataObject = obj;
wxDropSource drag( m_owner );
drag.SetData( *obj );
// wxImage image( 80, 20 );
// wxBitmap bitmap( image );
wxDragResult res = drag.DoDragDrop();
delete obj;
}
return;
}