summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-05-20 19:31:21 +0000
committerSilenio Quarti <silenio>2008-05-20 19:31:21 +0000
commitae21c0fb588240eee328d430c930ce36866a407f (patch)
tree3e029d4ed8b27d264864e2aa9674588ae3ea713e /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
parent650c120d4688204e1daa0edb48db7b8106fc015a (diff)
downloadeclipse.platform.swt-ae21c0fb588240eee328d430c930ce36866a407f.tar.gz
eclipse.platform.swt-ae21c0fb588240eee328d430c930ce36866a407f.tar.xz
eclipse.platform.swt-ae21c0fb588240eee328d430c930ce36866a407f.zip
229570 - Screen cheese in breadcrumb when using Windows classic style
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
index c7a8a77f06..62660a3003 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
@@ -405,7 +405,7 @@ public void setText (String string) {
* contains an image, the image is misaligned. The
* fix is to draw the background in WM_ERASEBKGND.
*/
- if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {
+ if (OS.COMCTL32_MAJOR < 6) {
if (findImageControl () != null) OS.InvalidateRect (handle, null, true);
}
}
@@ -451,7 +451,7 @@ LRESULT WM_ERASEBKGND (int /*long*/ wParam, int /*long*/ lParam) {
* contains an image, the image is misaligned. The
* fix is to draw the background in WM_ERASEBKGND.
*/
- if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {
+ if (OS.COMCTL32_MAJOR < 6) {
if (findImageControl () != null) {
drawBackground (wParam);
return LRESULT.ONE;
@@ -523,7 +523,7 @@ LRESULT wmColorChild (int /*long*/ wParam, int /*long*/ lParam) {
* fix is to draw the background in WM_ERASEBKGND.
*/
LRESULT result = super.wmColorChild (wParam, lParam);
- if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) {
+ if (OS.COMCTL32_MAJOR < 6) {
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.SS_OWNERDRAW) != OS.SS_OWNERDRAW) {
if (findImageControl () != null) {