diff options
author | Felipe Heidrich <fheidric> | 2006-06-08 21:57:05 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2006-06-08 21:57:05 +0000 |
commit | 841e1ded7292c4e39852347746f2cd083b0f7fd3 (patch) | |
tree | a53667fd77709a11481cd8b9c8080d0964083fae /bundles/org.eclipse.swt | |
parent | ceb12cb4cda6b73b56f0f02d97e16e6c90b63a2e (diff) | |
download | eclipse.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-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java | 2 | ||||
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Group.java | 1 |
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); |