summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2008-02-27 19:52:26 +0000
committerSteve Northover <steve>2008-02-27 19:52:26 +0000
commit13dca95cbaadc4c0def1007e4cbc85621366487a (patch)
treed675764c023b185c26c4386c88015116cb637962 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
parentf6895640a3af67c50b771f780b1eab3ddcf8354c (diff)
downloadeclipse.platform.swt-13dca95cbaadc4c0def1007e4cbc85621366487a.tar.gz
eclipse.platform.swt-13dca95cbaadc4c0def1007e4cbc85621366487a.tar.xz
eclipse.platform.swt-13dca95cbaadc4c0def1007e4cbc85621366487a.zip
use borderHandle() instead of scrolledHandle() to draw trim
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
index b643f13701..b472a93e1f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java
@@ -1590,8 +1590,8 @@ LRESULT WM_UPDATEUISTATE (int /*long*/ wParam, int /*long*/ lParam) {
LRESULT wmNCPaint (int /*long*/ hwnd, int /*long*/ wParam, int /*long*/ lParam) {
LRESULT result = super.wmNCPaint (hwnd, wParam, lParam);
if (result != null) return result;
- int /*long*/ scrolledHandle = scrolledHandle ();
- if ((state & CANVAS) != 0 || (hwnd == scrolledHandle && handle != scrolledHandle)) {
+ int /*long*/ borderHandle = borderHandle ();
+ if ((state & CANVAS) != 0 || (hwnd == borderHandle && handle != borderHandle)) {
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
int bits1 = OS.GetWindowLong (hwnd, OS.GWL_EXSTYLE);
if ((bits1 & OS.WS_EX_CLIENTEDGE) != 0) {