background image needs redraw in Combo and Spinner
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
index 0dee3484..c4164ee 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java
@@ -1223,6 +1223,14 @@
}
}
+void setBackgroundImage (int hBitmap) {
+ super.setBackgroundImage (hBitmap);
+ int hwndText = OS.GetDlgItem (handle, CBID_EDIT);
+ if (hwndText != 0) OS.InvalidateRect (hwndText, null, true);
+ int hwndList = OS.GetDlgItem (handle, CBID_LIST);
+ if (hwndList != 0) OS.InvalidateRect (hwndList, null, true);
+}
+
void setBackgroundPixel (int pixel) {
super.setBackgroundPixel (pixel);
int hwndText = OS.GetDlgItem (handle, CBID_EDIT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
index 1446d86..2d461ed 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Spinner.java
@@ -740,6 +740,11 @@
return false;
}
+void setBackgroundImage (int hBitmap) {
+ super.setBackgroundImage (hBitmap);
+ OS.InvalidateRect (hwndText, null, true);
+}
+
void setBackgroundPixel (int pixel) {
super.setBackgroundPixel (pixel);
OS.InvalidateRect (hwndText, null, true);