]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dataview/dataview.cpp
Make a couple virtuals protected so they can be overridden.
[wxWidgets.git] / samples / dataview / dataview.cpp
index 194fd587ad5789a2062e63b55fea01a2793e8774..857992884d39d4e6060bf2c970d2b6ec82d3d720 100644 (file)
@@ -41,7 +41,7 @@
 // resources
 // ----------------------------------------------------------------------------
 
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
     #include "../sample.xpm"
 #endif
 
@@ -841,6 +841,7 @@ void MyFrame::OnBeginDrag( wxDataViewEvent &event )
     wxTextDataObject *obj = new wxTextDataObject;
     obj->SetText( node->m_title );
     event.SetDataObject( obj );
+    event.SetDragFlags(wxDrag_AllowMove); // allows both copy and move
 }
 
 void MyFrame::OnDropPossible( wxDataViewEvent &event )