summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2006-06-08 21:57:05 +0000
committerFelipe Heidrich <fheidric>2006-06-08 21:57:05 +0000
commit841e1ded7292c4e39852347746f2cd083b0f7fd3 (patch)
treea53667fd77709a11481cd8b9c8080d0964083fae /bundles/org.eclipse.swt
parentceb12cb4cda6b73b56f0f02d97e16e6c90b63a2e (diff)
downloadeclipse.platform.swt-841e1ded7292c4e39852347746f2cd083b0f7fd3.tar.gz
eclipse.platform.swt-841e1ded7292c4e39852347746f2cd083b0f7fd3.tar.xz
eclipse.platform.swt-841e1ded7292c4e39852347746f2cd083b0f7fd3.zip
145662 - Group control borders disappear when tabbing between child widgets
Diffstat (limited to 'bundles/org.eclipse.swt')
-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);