X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa2d25a57aa4ae113e369ea8e08e5da4888e1b66..c97e7fa8dbda704c9c9cdb61c22ebdf9b692e114:/src/msw/dragimag.cpp diff --git a/src/msw/dragimag.cpp b/src/msw/dragimag.cpp index bff7fab265..f8c1580476 100644 --- a/src/msw/dragimag.cpp +++ b/src/msw/dragimag.cpp @@ -258,7 +258,6 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS m_boundingRect = * rect; bool ret = (ImageList_BeginDrag(GetHimageList(), 0, hotspot.x, hotspot.y) != 0); - //bool ret = (ImageList_BeginDrag(GetHimageList(), 0, 0, 0) != 0); if (!ret) { @@ -284,6 +283,9 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS // See if we can find the cursor hotspot wxPoint curHotSpot(hotspot); + // Although it seems to produce the right position, when the hotspot goeos + // negative it has strange effects on the image. + // How do we stop the cursor jumping right and below of where it should be? #if 0 ICONINFO iconInfo; if (::GetIconInfo((HICON) (HCURSOR) m_cursor.GetHCURSOR(), & iconInfo) != 0) @@ -292,9 +294,9 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS curHotSpot.y -= iconInfo.yHotspot; } #endif - wxString msg; - msg.Printf("Hotspot = %d, %d", curHotSpot.x, curHotSpot.y); - wxLogDebug(msg); + //wxString msg; + //msg.Printf("Hotspot = %d, %d", curHotSpot.x, curHotSpot.y); + //wxLogDebug(msg); // First add the cursor to the image list HCURSOR hCursor = (HCURSOR) m_cursor.GetHCURSOR();