diff options
author | Steve Northover <steve> | 2005-07-19 20:03:50 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-07-19 20:03:50 +0000 |
commit | 7e81b84a2c12e711d885a4cd4a47a7eab239d8f4 (patch) | |
tree | da4a0c2e53f22ad1b003c826b536c92d237a6eee /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | |
parent | a8b74e75ae0bc2282703c2c3690d1eb9e1e969ec (diff) | |
download | eclipse.platform.swt-7e81b84a2c12e711d885a4cd4a47a7eab239d8f4.tar.gz eclipse.platform.swt-7e81b84a2c12e711d885a4cd4a47a7eab239d8f4.tar.xz eclipse.platform.swt-7e81b84a2c12e711d885a4cd4a47a7eab239d8f4.zip |
80465 - XP theme - label issues with tab folder
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java index d3b27a0c3b..3855806b47 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java @@ -172,6 +172,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { void createHandle () { super.createHandle (); + state |= TRANSPARENT; if (OS.COMCTL32_MAJOR < 6) { layout = new TextLayout (display); linkColor = new Color (display, LINK_FOREGROUND); @@ -880,22 +881,6 @@ LRESULT WM_SIZE (int wParam, int lParam) { return result; } -LRESULT wmColorChild (int wParam, int lParam) { - LRESULT result = super.wmColorChild (wParam, lParam); - if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) { - Control control = findThemeControl (); - if (control != null) { - OS.SetBkMode (wParam, OS.TRANSPARENT); - RECT rect = new RECT (); - OS.GetClientRect (control.handle, rect); - OS.MapWindowPoints (control.handle, handle, rect, 2); - control.drawThemeBackground (wParam, rect); - return new LRESULT (OS.GetStockObject (OS.NULL_BRUSH)); - } - } - return result; -} - LRESULT wmNotifyChild (int wParam, int lParam) { if (OS.COMCTL32_MAJOR >= 6) { NMHDR hdr = new NMHDR (); |