summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2005-11-29 03:35:27 +0000
committerSteve Northover <steve>2005-11-29 03:35:27 +0000
commitbc4d3581c33a4dad038becb29f77136e2bbc5f2e (patch)
treed8be2e1452b1102b3a2290d720e6af9fb2d72268 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Label.java
parentce92898e77608bf804c80f5b62e889fe568db6fc (diff)
downloadeclipse.platform.swt-bc4d3581c33a4dad038becb29f77136e2bbc5f2e.tar.gz
eclipse.platform.swt-bc4d3581c33a4dad038becb29f77136e2bbc5f2e.tar.xz
eclipse.platform.swt-bc4d3581c33a4dad038becb29f77136e2bbc5f2e.zip
implement Control.setBackgroundImage()
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 13c3f5b220..8f1fc482f8 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
@@ -176,7 +176,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) {
void createHandle () {
super.createHandle ();
- state |= TRANSPARENT;
+ state |= THEME_BACKGROUND;
}
/**
@@ -464,9 +464,9 @@ LRESULT WM_UPDATEUISTATE (int wParam, int lParam) {
* The fix is draw the static without drawing the background
* and avoid the static window proc.
*/
- boolean redraw = backgroundImage != null;
+ boolean redraw = findImageControl () != null;
if (!redraw) {
- if ((state & TRANSPARENT) != 0) {
+ if ((state & THEME_BACKGROUND) != 0) {
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
redraw = findThemeControl () != null;
}