wxDropSource now has 3 custom cursors for copy/move/nothing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-24 19:34:11 +00:00
parent f96ac56ad3
commit 2d93e1335c
4 changed files with 76 additions and 31 deletions

View File

@@ -871,7 +871,10 @@ void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
{
// start drag operation
wxTextDataObject textData(m_strText);
wxDropSource source(textData, this, wxICON(mondrian));
wxDropSource source(textData, this,
wxCURSOR_PENCIL, // for copy
wxCURSOR_SPRAYCAN, // for move
wxCURSOR_QUESTION_ARROW); // for nothing
const char *pc;
@@ -1253,7 +1256,7 @@ void DnDShapeFrame::OnDrag(wxMouseEvent& event)
// start drag operation
DnDShapeDataObject shapeData(m_shape);
wxDropSource source(shapeData, this, wxICON(mondrian));
wxDropSource source(shapeData, this);
const char *pc = NULL;
switch ( source.DoDragDrop(TRUE) )