Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-08-11 15:33:35 +0000
committerVeronika Irvine2004-08-11 15:33:35 +0000
commitf366f7308420b5c4fc82f665695a66a30c3b5f67 (patch)
tree5034092b3b3f9bf1222a2089b0e372bfa1d1671c
parent80b0257dc00356f08fdd9be53d0f570b2779f75e (diff)
downloadeclipse.platform.swt-f366f7308420b5c4fc82f665695a66a30c3b5f67.tar.gz
eclipse.platform.swt-f366f7308420b5c4fc82f665695a66a30c3b5f67.tar.xz
eclipse.platform.swt-f366f7308420b5c4fc82f665695a66a30c3b5f67.zip
bug 69398
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
index 9dd9be9d03..bb147731af 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
@@ -1092,7 +1092,14 @@ int getFocusIndex () {
}
int getForegroundPixel () {
- return OS.SendMessage (handle, OS.LVM_GETTEXTCOLOR, 0, 0);
+ int pixel = OS.SendMessage (handle, OS.LVM_GETTEXTCOLOR, 0, 0);
+ /*
+ * The Windows table control uses CLR_DEFAULT to indicate
+ * that it is using the default foreground color. This
+ * is undocumented.
+ */
+ if (pixel == OS.CLR_DEFAULT) return OS.GetSysColor (OS.COLOR_WINDOWTEXT);
+ return pixel;
}
/**

Back to the top