Implemented Chuck Messenger's naming and simplification improvements,
plus Move coordinate correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
// Under Windows, change this to 1
|
||||
// to use wxGenericDragImage
|
||||
|
||||
#define wxUSE_GENERIC_DRAGIMAGE 1
|
||||
#define wxUSE_GENERIC_DRAGIMAGE 0
|
||||
|
||||
#if wxUSE_GENERIC_DRAGIMAGE
|
||||
#include "wx/generic/dragimgg.h"
|
||||
@@ -201,11 +201,11 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event)
|
||||
// Can anyone explain why this test is necessary,
|
||||
// to prevent a gcc error?
|
||||
#ifdef __WXMOTIF__
|
||||
wxIcon icon(dragicon_xpm);
|
||||
wxIcon icon(dragicon_xpm);
|
||||
#else
|
||||
wxIcon icon(wxICON(dragicon));
|
||||
wxIcon icon(wxICON(dragicon));
|
||||
#endif
|
||||
|
||||
|
||||
m_dragImage = new wxDragImage(icon, wxCursor(wxCURSOR_HAND), hotSpot);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user