+// Begin drag. hotspot is the location of the drag position relative to the upper-left
+// corner of the image. This is full screen only. fullScreenRect gives the
+// position of the window on the screen, to restrict the drag to.
+bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, wxWindow* fullScreenRect)
+{
+ wxRect rect;
+
+ int x = fullScreenRect->GetPosition().x;
+ int y = fullScreenRect->GetPosition().y;
+
+ wxSize sz = fullScreenRect->GetSize();
+
+ if (fullScreenRect->GetParent() && !fullScreenRect->IsKindOf(CLASSINFO(wxFrame)))
+ fullScreenRect->GetParent()->ClientToScreen(& x, & y);
+
+ rect.x = x; rect.y = y;
+ rect.width = sz.x; rect.height = sz.y;
+
+ return BeginDrag(hotspot, window, TRUE, & rect);
+}
+