Use wxDF_UNICODETEXT to make wxMSW crash

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2009-01-21 15:14:33 +00:00
parent e90d2e8339
commit 05527158e5

View File

@@ -807,8 +807,8 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
m_music_model = new MyMusicModel; m_music_model = new MyMusicModel;
m_musicCtrl->AssociateModel( m_music_model.get() ); m_musicCtrl->AssociateModel( m_music_model.get() );
m_musicCtrl->EnableDragSource( wxDF_TEXT ); m_musicCtrl->EnableDragSource( wxDF_UNICODETEXT );
m_musicCtrl->EnableDropTarget( wxDF_TEXT ); m_musicCtrl->EnableDropTarget( wxDF_UNICODETEXT );
wxDataViewTextRenderer *tr = new wxDataViewTextRenderer( wxT("string"), wxDATAVIEW_CELL_INERT ); wxDataViewTextRenderer *tr = new wxDataViewTextRenderer( wxT("string"), wxDATAVIEW_CELL_INERT );
wxDataViewColumn *column0 = new wxDataViewColumn( wxT("title"), tr, 0, 200, wxALIGN_LEFT, wxDataViewColumn *column0 = new wxDataViewColumn( wxT("title"), tr, 0, 200, wxALIGN_LEFT,
@@ -1182,7 +1182,7 @@ void MyFrame::OnDropPossible( wxDataViewEvent &event )
if (m_music_model->IsContainer( item ) ) if (m_music_model->IsContainer( item ) )
event.Veto(); event.Veto();
if (event.GetDataFormat() != wxDF_TEXT) if (event.GetDataFormat() != wxDF_UNICODETEXT)
event.Veto(); event.Veto();
} }
@@ -1197,7 +1197,7 @@ void MyFrame::OnDrop( wxDataViewEvent &event )
return; return;
} }
if (event.GetDataFormat() != wxDF_TEXT) if (event.GetDataFormat() != wxDF_UNICODETEXT)
{ {
event.Veto(); event.Veto();
return; return;