Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2007-08-27 20:20:16 +0000
committerKevin Barnes2007-08-27 20:20:16 +0000
commitc6b183f5699dde0151d93c0aae804a7b2e5b3da7 (patch)
treef9a9d4cd4ce0fdc73bee774f54d186fe1bb0dfec
parentb782904635967999988ef9585c145bfe83ff9ada (diff)
downloadeclipse.platform.swt-c6b183f5699dde0151d93c0aae804a7b2e5b3da7.tar.gz
eclipse.platform.swt-c6b183f5699dde0151d93c0aae804a7b2e5b3da7.tar.xz
eclipse.platform.swt-c6b183f5699dde0151d93c0aae804a7b2e5b3da7.zip
200101 - TableColumn sets image when SWT.CENTER alignment is used
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java
index e221c0920c..f6c84d4877 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java
@@ -546,7 +546,7 @@ public void setAlignment (int alignment) {
style |= alignment & (SWT.LEFT | SWT.RIGHT | SWT.CENTER);
int /*long*/ hwnd = parent.handle;
LVCOLUMN lvColumn = new LVCOLUMN ();
- lvColumn.mask = OS.LVCF_FMT | OS.LVCF_IMAGE;
+ lvColumn.mask = OS.LVCF_FMT;
OS.SendMessage (hwnd, OS.LVM_GETCOLUMN, index, lvColumn);
lvColumn.fmt &= ~OS.LVCFMT_JUSTIFYMASK;
int fmt = 0;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
index 44872d822d..3cca2ee890 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java
@@ -491,7 +491,7 @@ public void setAlignment (int alignment) {
int /*long*/ hwndHeader = parent.hwndHeader;
if (hwndHeader == 0) return;
HDITEM hdItem = new HDITEM ();
- hdItem.mask = OS.HDI_FORMAT | OS.HDI_IMAGE;
+ hdItem.mask = OS.HDI_FORMAT;
OS.SendMessage (hwndHeader, OS.HDM_GETITEM, index, hdItem);
hdItem.fmt &= ~OS.HDF_JUSTIFYMASK;
if ((style & SWT.LEFT) == SWT.LEFT) hdItem.fmt |= OS.HDF_LEFT;

Back to the top