Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich2007-05-07 17:45:26 +0000
committerFelipe Heidrich2007-05-07 17:45:26 +0000
commit863457f329f461545db98aaa61dfae7a268f1419 (patch)
tree60bb78d797bd62ea40da9db30168a925975b29d1
parent7d5028eec4d3594ab8bb8af11bcfe48dd49241d7 (diff)
downloadeclipse.platform.swt-863457f329f461545db98aaa61dfae7a268f1419.tar.gz
eclipse.platform.swt-863457f329f461545db98aaa61dfae7a268f1419.tar.xz
eclipse.platform.swt-863457f329f461545db98aaa61dfae7a268f1419.zip
Bug 145662 - backport
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
index 9e57d7f30d..af18bdfad3 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java
@@ -450,7 +450,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
void createHandle () {
super.createHandle ();
if ((style & SWT.PUSH) == 0) state |= THEME_BACKGROUND;
- if (OS.COMCTL32_MAJOR >= 6) {
+ if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
if ((style & SWT.RADIO) != 0) state |= DRAW_BACKGROUND;
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
index b4a13902d1..fe7693bfcf 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java
@@ -400,6 +400,7 @@ LRESULT WM_UPDATEUISTATE (int wParam, int lParam) {
redraw = findThemeControl () != null;
}
}
+ if (!redraw) redraw = findBackgroundControl () != null;
}
if (redraw) {
OS.InvalidateRect (handle, null, false);

Back to the top