diff options
author | Veronika Irvine <veronika> | 2006-03-17 16:52:33 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2006-03-17 16:52:33 +0000 |
commit | d249d09ca373f604e50b8fbeff2350b54bae2830 (patch) | |
tree | 68ae832e73868dd5b0b9ac93af85a75b44bb1400 | |
parent | 65e89296476125a27ce4d78362eb0992ce10adb9 (diff) | |
download | eclipse.platform.swt-d249d09ca373f604e50b8fbeff2350b54bae2830.tar.gz eclipse.platform.swt-d249d09ca373f604e50b8fbeff2350b54bae2830.tar.xz eclipse.platform.swt-d249d09ca373f604e50b8fbeff2350b54bae2830.zip |
Getting black background in drag over effect
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragAndDropEffect.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragAndDropEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragAndDropEffect.java index a305c8d9ea..068889c028 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragAndDropEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/TableDragAndDropEffect.java @@ -68,6 +68,10 @@ ImageData getDragSourceImage(int x, int y) { int hDC1 = OS.CreateCompatibleDC(hDC); int bitmap = OS.CreateCompatibleBitmap(hDC, bounds.width, bounds.height); int hOldBitmap = OS.SelectObject(hDC1, bitmap); + RECT rect = new RECT(); + rect.right = bounds.width; + rect.bottom = bounds.height; + OS.FillRect(hDC1, rect, -1); for (int i = 0; i < count; i++) { TableItem selected = selection[i]; Rectangle cell = selected.getBounds(0); |