diff options
author | Steve Northover <steve> | 2005-06-06 14:58:30 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2005-06-06 14:58:30 +0000 |
commit | 8c25e06efd69e55c651488a1b3273099447dfd37 (patch) | |
tree | 93b6cc7bb9f53912f3db40bc9ee0b1ff2067bcff | |
parent | 170de719a9a5df9a76d867e44e5defb76544c80e (diff) | |
download | eclipse.platform.swt-8c25e06efd69e55c651488a1b3273099447dfd37.tar.gz eclipse.platform.swt-8c25e06efd69e55c651488a1b3273099447dfd37.tar.xz eclipse.platform.swt-8c25e06efd69e55c651488a1b3273099447dfd37.zip |
add missing code to Link for drawThemeBackground() framework
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java | 16 |
1 files changed, 16 insertions, 0 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 b8ccbb192f..7151a9570b 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 @@ -881,6 +881,22 @@ 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 (); |